diff options
author | Amelie Delaunay <amelie.delaunay@st.com> | 2018-02-16 14:16:00 +0100 |
---|---|---|
committer | Alexandre Torgue <alexandre.torgue@st.com> | 2018-02-27 15:54:03 +0100 |
commit | 732e7a6ee4386d83d35089ae5e58c27f4d0c70d3 (patch) | |
tree | f49e076de99110a7df3c51f4e68eeee143a42bba /arch/arm/boot/dts/stm32h743.dtsi | |
parent | ARM: dts: stm32: enable USB OTG HS on stm32h743i-eval (diff) | |
download | linux-732e7a6ee4386d83d35089ae5e58c27f4d0c70d3.tar.xz linux-732e7a6ee4386d83d35089ae5e58c27f4d0c70d3.zip |
ARM: dts: stm32: add RTC support on STM32H743
This patch adds support for RTC on STM32H743 SoC.
It also adds dt-bindings/interrupt-controller/irq.h include and uses it to
configure RTC alarm interrupt.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Diffstat (limited to 'arch/arm/boot/dts/stm32h743.dtsi')
-rw-r--r-- | arch/arm/boot/dts/stm32h743.dtsi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi index 68fc12f01939..3a28cd2c5a70 100644 --- a/arch/arm/boot/dts/stm32h743.dtsi +++ b/arch/arm/boot/dts/stm32h743.dtsi @@ -44,6 +44,7 @@ #include "armv7-m.dtsi" #include <dt-bindings/clock/stm32h7-clks.h> #include <dt-bindings/mfd/stm32h7-rcc.h> +#include <dt-bindings/interrupt-controller/irq.h> / { clocks { @@ -347,6 +348,20 @@ status = "disabled"; }; + rtc: rtc@58004000 { + compatible = "st,stm32h7-rtc"; + reg = <0x58004000 0x400>; + clocks = <&rcc RTCAPB_CK>, <&rcc RTC_CK>; + clock-names = "pclk", "rtc_ck"; + assigned-clocks = <&rcc RTC_CK>; + assigned-clock-parents = <&rcc LSE_CK>; + interrupt-parent = <&exti>; + interrupts = <17 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "alarm"; + st,syscfg = <&pwrcfg>; + status = "disabled"; + }; + rcc: reset-clock-controller@58024400 { compatible = "st,stm32h743-rcc", "st,stm32-rcc"; reg = <0x58024400 0x400>; |