Skip to content

Commit 2bff395

Browse files
aurel32MaureenHelm
authored andcommitted
dts: arm: st: g0: add stm32-bbram node
On STM32G0, the backup memory is defined as part of the TAMP peripheral. Use the same workaround as on STM32WL to add the node as part of the RTC. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
1 parent 326d605 commit 2bff395

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dts/arm/st/g0/stm32g0.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,18 @@
192192
alarms-count = <2>;
193193
alrm-exti-line = <19>;
194194
status = "disabled";
195+
196+
/* In STM32G0, the backup registers are defined as part of the TAMP
197+
* peripheral. This peripheral is not implemented in Zephyr yet, however,
198+
* the reference manual states that tamp_pclk is connected to rtc_pclk.
199+
* It makes sense to have BBRAM instantiated as a child of RTC, so that
200+
* the driver can verify that its parent device (RTC) is ready.
201+
*/
202+
bbram: backup_regs {
203+
compatible = "st,stm32-bbram";
204+
st,backup-regs = <5>;
205+
status = "disabled";
206+
};
195207
};
196208

197209
iwdg: watchdog@40003000 {

0 commit comments

Comments
 (0)