dts: arm: st: stm32h5: add backup sram to all socs
This commit moves the backup sram definition to the
series base dtsi file, the size is overwritten for socs
which have a bigger bkpsram.
The backup SRAM is available on all stm32h5 mcus.
stm32h503/523/533 have 2k
stm32h562/563/573 have 4k
Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
diff --git a/dts/arm/st/h5/stm32h5.dtsi b/dts/arm/st/h5/stm32h5.dtsi
index 9b2e142..a842aea 100644
--- a/dts/arm/st/h5/stm32h5.dtsi
+++ b/dts/arm/st/h5/stm32h5.dtsi
@@ -117,6 +117,14 @@
};
};
+ backup_sram: memory@40036400 {
+ compatible = "zephyr,memory-region", "st,stm32-backup-sram";
+ reg = <0x40036400 DT_SIZE_K(2)>;
+ clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x10000000>;
+ zephyr,memory-region = "BACKUP_SRAM";
+ status = "disabled";
+ };
+
power-states {
stop: state0 {
compatible = "zephyr,power-state";
diff --git a/dts/arm/st/h5/stm32h562.dtsi b/dts/arm/st/h5/stm32h562.dtsi
index f1b6064..08e830f 100644
--- a/dts/arm/st/h5/stm32h562.dtsi
+++ b/dts/arm/st/h5/stm32h562.dtsi
@@ -57,11 +57,7 @@
};
backup_sram: memory@40036400 {
- compatible = "zephyr,memory-region", "st,stm32-backup-sram";
reg = <0x40036400 DT_SIZE_K(4)>;
- clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x10000000>;
- zephyr,memory-region = "BACKUP_SRAM";
- status = "disabled";
};
lptim3: timers@44004800 {