ARM: dts: stm32: add RTC node on stm32mp131
authorValentin Caron <valentin.caron@foss.st.com>
Thu, 7 Apr 2022 16:20:41 +0000 (18:20 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 19 Apr 2022 15:25:40 +0000 (17:25 +0200)
Add RTC node with compatible, clock, and interrupt properties
on stm32mp131.

Add clk_rtc_k fixed clock for RTC.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp131.dtsi

index 294c4aec3342a3ea4aab76c2905653afec674079..58647396704f7dba4c8fa6a15880eab7a9c1995e 100644 (file)
                        compatible = "fixed-clock";
                        clock-frequency = <99000000>;
                };
+
+               clk_rtc_k: clk-rtc-k {
+                       #clock-cells = <0>;
+                       compatible = "fixed-clock";
+                       clock-frequency = <32768>;
+               };
        };
 
        intc: interrupt-controller@a0021000 {
                        status = "disabled";
                };
 
+               rtc: rtc@5c004000 {
+                       compatible = "st,stm32mp1-rtc";
+                       reg = <0x5c004000 0x400>;
+                       interrupts-extended = <&exti 19 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk_pclk4>, <&clk_rtc_k>;
+                       clock-names = "pclk", "rtc_ck";
+                       status = "disabled";
+               };
+
                bsec: efuse@5c005000 {
                        compatible = "st,stm32mp15-bsec";
                        reg = <0x5c005000 0x400>;