aboutsummaryrefslogtreecommitdiff
path: root/dts/upstream/Bindings/rtc/rtc-cmos.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dts/upstream/Bindings/rtc/rtc-cmos.txt')
-rw-r--r--dts/upstream/Bindings/rtc/rtc-cmos.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/dts/upstream/Bindings/rtc/rtc-cmos.txt b/dts/upstream/Bindings/rtc/rtc-cmos.txt
new file mode 100644
index 00000000000..7d7b5f6bda6
--- /dev/null
+++ b/dts/upstream/Bindings/rtc/rtc-cmos.txt
@@ -0,0 +1,27 @@
+ Motorola mc146818 compatible RTC
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Required properties:
+ - compatible : "motorola,mc146818"
+ - reg : should contain registers location and length.
+
+Optional properties:
+ - interrupts : should contain interrupt.
+ - ctrl-reg : Contains the initial value of the control register also
+ called "Register B".
+ - freq-reg : Contains the initial value of the frequency register also
+ called "Register A".
+
+"Register A" and "B" are usually initialized by the firmware (BIOS for
+instance). If this is not done, it can be performed by the driver.
+
+ISA Example:
+
+ rtc@70 {
+ compatible = "motorola,mc146818";
+ interrupts = <8 3>;
+ interrupt-parent = <&ioapic1>;
+ ctrl-reg = <2>;
+ freq-reg = <0x26>;
+ reg = <1 0x70 2>;
+ };