Skip to content

Commit 918cbc5

Browse files
DNedicnashif
authored andcommitted
soc: Move up SRAM definitions for stm32h56/7x
This moves the SRAM definitions for STM32H56/7x chips up to the top level since they are common to all of them. Signed-off-by: Djordje Nedic <[email protected]>
1 parent b54f49c commit 918cbc5

File tree

3 files changed

+18
-36
lines changed

3 files changed

+18
-36
lines changed

dts/arm/st/h5/stm32h562.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,24 @@
5757
};
5858
};
5959

60+
sram1: memory@20000000 {
61+
compatible = "zephyr,memory-region", "mmio-sram";
62+
reg = <0x20000000 DT_SIZE_K(256)>;
63+
zephyr,memory-region = "SRAM1";
64+
};
65+
66+
sram2: memory@20040000 {
67+
compatible = "zephyr,memory-region", "mmio-sram";
68+
reg = <0x20040000 DT_SIZE_K(64)>;
69+
zephyr,memory-region = "SRAM2";
70+
};
71+
72+
sram3: memory@20050000 {
73+
compatible = "zephyr,memory-region", "mmio-sram";
74+
reg = <0x20050000 DT_SIZE_K(320)>;
75+
zephyr,memory-region = "SRAM3";
76+
};
77+
6078
backup_sram: memory@40036400 {
6179
reg = <0x40036400 DT_SIZE_K(4)>;
6280
};

dts/arm/st/h5/stm32h563Xi.dtsi

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,6 @@
88
#include <st/h5/stm32h563.dtsi>
99

1010
/ {
11-
sram1: memory@20000000 {
12-
compatible = "zephyr,memory-region", "mmio-sram";
13-
reg = <0x20000000 DT_SIZE_K(256)>;
14-
zephyr,memory-region = "SRAM1";
15-
};
16-
17-
sram2: memory@20040000 {
18-
compatible = "zephyr,memory-region", "mmio-sram";
19-
reg = <0x20040000 DT_SIZE_K(64)>;
20-
zephyr,memory-region = "SRAM2";
21-
};
22-
23-
sram3: memory@20050000 {
24-
compatible = "zephyr,memory-region", "mmio-sram";
25-
reg = <0x20050000 DT_SIZE_K(320)>;
26-
zephyr,memory-region = "SRAM3";
27-
};
28-
2911
soc {
3012
flash-controller@40022000 {
3113
flash0: flash@8000000 {

dts/arm/st/h5/stm32h573Xi.dtsi

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,6 @@
77
#include <st/h5/stm32h573.dtsi>
88

99
/ {
10-
sram1: memory@20000000 {
11-
compatible = "zephyr,memory-region", "mmio-sram";
12-
reg = <0x20000000 DT_SIZE_K(256)>;
13-
zephyr,memory-region = "SRAM1";
14-
};
15-
16-
sram2: memory@20040000 {
17-
compatible = "zephyr,memory-region", "mmio-sram";
18-
reg = <0x20040000 DT_SIZE_K(64)>;
19-
zephyr,memory-region = "SRAM2";
20-
};
21-
22-
sram3: memory@20050000 {
23-
compatible = "zephyr,memory-region", "mmio-sram";
24-
reg = <0x20050000 DT_SIZE_K(320)>;
25-
zephyr,memory-region = "SRAM3";
26-
};
27-
2810
soc {
2911
flash-controller@40022000 {
3012
flash0: flash@8000000 {

0 commit comments

Comments
 (0)