[PATCH 1/2] ARM: dts: stm32: add RTC node on stm32mp131

Valentin Caron valentin.caron at foss.st.com
Thu Apr 7 09:20:41 PDT 2022


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 at foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron at foss.st.com>
---
 arch/arm/boot/dts/stm32mp131.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index 1708c79b5254..9b1c87edd613 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -75,6 +75,12 @@ clk_pll4_r: clk-pll4_r {
 			compatible = "fixed-clock";
 			clock-frequency = <99000000>;
 		};
+
+		clk_rtc_k: clk-rtc-k {
+			#clock-cells = <0>;
+			compatible = "fixed-clock";
+			clock-frequency = <32768>;
+		};
 	};
 
 	intc: interrupt-controller at a0021000 {
@@ -218,6 +224,15 @@ iwdg2: watchdog at 5a002000 {
 			status = "disabled";
 		};
 
+		rtc: rtc at 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 at 5c005000 {
 			compatible = "st,stm32mp15-bsec";
 			reg = <0x5c005000 0x400>;
-- 
2.25.1




More information about the linux-arm-kernel mailing list