doc: dt: add documentation for nxp,lpc1788-rtc
authorJoachim Eastwood <manabian@gmail.com>
Sat, 11 Jul 2015 17:28:50 +0000 (19:28 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:06 +0000 (13:19 +0200)
Document NXP LPC178x/18xx/408x/43xx bindings

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt b/Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt
new file mode 100644 (file)
index 0000000..3c97bd1
--- /dev/null
@@ -0,0 +1,21 @@
+NXP LPC1788 real-time clock
+
+The LPC1788 RTC provides calendar and clock functionality
+together with periodic tick and alarm interrupt support.
+
+Required properties:
+- compatible   : must contain "nxp,lpc1788-rtc"
+- reg          : Specifies base physical address and size of the registers.
+- interrupts   : A single interrupt specifier.
+- clocks       : Must contain clock specifiers for rtc and register clock
+- clock-names  : Must contain "rtc" and "reg"
+  See ../clocks/clock-bindings.txt for details.
+
+Example:
+rtc: rtc@40046000 {
+       compatible = "nxp,lpc1788-rtc";
+       reg = <0x40046000 0x1000>;
+       interrupts = <47>;
+       clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
+       clock-names = "rtc", "reg";
+};