Skip to content

Commit 76b6f6e

Browse files
Alain Volmatcfriedt
authored andcommitted
dts: arm: st: add zephyr,memory-region on all missing stm32 dts
Add the compatible zephyr,memory-region for all mmio-sram region which do not have yet that compatible as well as add the label to those regions. This allow to have a linker memory report which list all areas and also have all regions accessible via the linker script. Signed-off-by: Alain Volmat <[email protected]>
1 parent a5edd6a commit 76b6f6e

32 files changed

+79
-33
lines changed

dts/arm/st/c0/stm32c0.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
};
105105

106106
sram0: memory@20000000 {
107-
compatible = "mmio-sram";
107+
compatible = "zephyr,memory-region", "mmio-sram";
108+
zephyr,memory-region = "SRAM0";
108109
};
109110

110111
clocks {

dts/arm/st/f0/stm32f0.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
};
3636

3737
sram0: memory@20000000 {
38-
compatible = "mmio-sram";
38+
compatible = "zephyr,memory-region", "mmio-sram";
39+
zephyr,memory-region = "SRAM0";
3940
};
4041

4142
clocks {

dts/arm/st/f1/stm32f1.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
};
5656

5757
sram0: memory@20000000 {
58-
compatible = "mmio-sram";
58+
compatible = "zephyr,memory-region", "mmio-sram";
59+
zephyr,memory-region = "SRAM0";
5960
};
6061

6162
clocks {

dts/arm/st/f2/stm32f2.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
};
3838

3939
sram0: memory@20000000 {
40-
compatible = "mmio-sram";
40+
compatible = "zephyr,memory-region", "mmio-sram";
41+
zephyr,memory-region = "SRAM0";
4142
};
4243

4344
clocks {

dts/arm/st/f3/stm32f3.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
};
3535

3636
sram0: memory@20000000 {
37-
compatible = "mmio-sram";
37+
compatible = "zephyr,memory-region", "mmio-sram";
38+
zephyr,memory-region = "SRAM0";
3839
};
3940

4041
clocks {

dts/arm/st/f4/stm32f4.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
};
5656

5757
sram0: memory@20000000 {
58-
compatible = "mmio-sram";
58+
compatible = "zephyr,memory-region", "mmio-sram";
59+
zephyr,memory-region = "SRAM0";
5960
};
6061

6162
clocks {

dts/arm/st/g0/stm32g0.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
};
5656

5757
sram0: memory@20000000 {
58-
compatible = "mmio-sram";
58+
compatible = "zephyr,memory-region", "mmio-sram";
59+
zephyr,memory-region = "SRAM0";
5960
};
6061

6162
clocks {

dts/arm/st/g4/stm32g4.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
};
5454

5555
sram0: memory@20000000 {
56-
compatible = "mmio-sram";
56+
compatible = "zephyr,memory-region", "mmio-sram";
57+
zephyr,memory-region = "SRAM0";
5758
};
5859

5960
clocks {

dts/arm/st/h5/stm32h503Xb.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
/ {
1010
sram0: memory@20000000 {
11+
compatible = "zephyr,memory-region", "mmio-sram";
1112
reg = <0x20000000 DT_SIZE_K(32)>;
13+
zephyr,memory-region = "SRAM0";
1214
};
1315

1416
soc {

dts/arm/st/h7/stm32h723.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@
195195
/* D1 domain, AXI SRAM (128KB with shared ITCM 192KB as `TCM_AXI_SHARED` is `000`) */
196196
sram0: memory@24000000 {
197197
reg = <0x24000000 DT_SIZE_K(320)>;
198-
compatible = "mmio-sram";
198+
compatible = "zephyr,memory-region", "mmio-sram";
199+
zephyr,memory-region = "SRAM0";
199200
};
200201

201202
/* D2 domain, AHB SRAM */

0 commit comments

Comments
 (0)