Skip to content

Commit f58f6b8

Browse files
FRASTMMaureenHelm
authored andcommitted
soc: arm: stm32g0 add rtc feature on this serie
This patch enables the rtc clock on the stm32g0 soc from STMicroelectronics. Signed-off-by: Francois Ramu <[email protected]>
1 parent c86aefd commit f58f6b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dts/arm/st/g0/stm32g0.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@
111111
};
112112
};
113113

114+
rtc: rtc@40002800 {
115+
compatible = "st,stm32-rtc";
116+
reg = <0x40002800 0x400>;
117+
interrupts = <2 0>;
118+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000400>;
119+
prescaler = <32768>;
120+
status = "disabled";
121+
label = "RTC_0";
122+
};
123+
114124
iwdg: watchdog@40003000 {
115125
compatible = "st,stm32-watchdog";
116126
reg = <0x40003000 0x400>;

0 commit comments

Comments
 (0)