aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2017-01-05 08:43:23 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-01-12 19:32:19 -0500
commit7c60930500b5b48e12ef6b9d332b300f3e9a8354 (patch)
tree0a2b43c02634bd3fd49a37fd8a76218fd9d5c30e
parentd748c9810be2d6a570aad0390463c9ac4336b161 (diff)
dt-bindings: document the STM32 RTC bindings
This patch adds documentation of device tree bindings for the STM32 RTC. Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt
new file mode 100644
index 000000000000..e2837b951237
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt
@@ -0,0 +1,27 @@
1STM32 Real Time Clock
2
3Required properties:
4- compatible: "st,stm32-rtc".
5- reg: address range of rtc register set.
6- clocks: reference to the clock entry ck_rtc.
7- interrupt-parent: phandle for the interrupt controller.
8- interrupts: rtc alarm interrupt.
9- st,syscfg: phandle for pwrcfg, mandatory to disable/enable backup domain
10 (RTC registers) write protection.
11
12Optional properties (to override default ck_rtc parent clock):
13- assigned-clocks: reference to the ck_rtc clock entry.
14- assigned-clock-parents: phandle of the new parent clock of ck_rtc.
15
16Example:
17
18 rtc: rtc@40002800 {
19 compatible = "st,stm32-rtc";
20 reg = <0x40002800 0x400>;
21 clocks = <&rcc 1 CLK_RTC>;
22 assigned-clocks = <&rcc 1 CLK_RTC>;
23 assigned-clock-parents = <&rcc 1 CLK_LSE>;
24 interrupt-parent = <&exti>;
25 interrupts = <17 1>;
26 st,syscfg = <&pwrcfg>;
27 };