Skip to content

Commit 98277c9

Browse files
wmrsouzakartben
authored andcommitted
dts: esp32: enhance memory regions description
Add regions to .dtsi files to better describe SoCs memory Signed-off-by: Marcio Ribeiro <[email protected]>
1 parent 44d8553 commit 98277c9

File tree

7 files changed

+73
-19
lines changed

7 files changed

+73
-19
lines changed

dts/riscv/espressif/esp32c2/esp32c2_common.dtsi

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,16 @@
5656
compatible = "simple-bus";
5757
ranges;
5858

59-
sram0: memory@3fc7c000 {
60-
compatible = "mmio-sram";
61-
reg = <0x3fc7c000 0x50000>;
59+
sram0: memory@40370000 {
60+
compatible = "zephyr,memory-region", "mmio-sram";
61+
reg = <0x40370000 DT_SIZE_K(16)>;
62+
zephyr,memory-region = "SRAM0";
63+
};
64+
65+
sram1: memory@3fca0000 {
66+
compatible = "zephyr,memory-region", "mmio-sram";
67+
reg = <0x3fca0000 DT_SIZE_K(256)>;
68+
zephyr,memory-region = "SRAM1";
6269
};
6370

6471
intc: interrupt-controller@600c2000 {

dts/riscv/espressif/esp32c3/esp32c3_common.dtsi

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,16 @@
8080
compatible = "simple-bus";
8181
ranges;
8282

83-
sram0: memory@3fc7c000 {
84-
compatible = "mmio-sram";
85-
reg = <0x3fc7c000 0x50000>;
83+
sram0: memory@40370000 {
84+
compatible = "zephyr,memory-region", "mmio-sram";
85+
reg = <0x40370000 DT_SIZE_K(16)>;
86+
zephyr,memory-region = "SRAM0";
87+
};
88+
89+
sram1: memory@3fc80000 {
90+
compatible = "zephyr,memory-region", "mmio-sram";
91+
reg = <0x3fc80000 DT_SIZE_K(384)>;
92+
zephyr,memory-region = "SRAM1";
8693
};
8794

8895
intc: interrupt-controller@600c2000 {

dts/riscv/espressif/esp32c6/esp32c6_common.dtsi

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,16 @@
6767
compatible = "simple-bus";
6868
ranges;
6969

70-
sram0: memory@40800000 {
71-
compatible = "mmio-sram";
72-
reg = <0x40800000 0x50000>;
70+
sramhp: memory@40800000 {
71+
compatible = "zephyr,memory-region", "mmio-sram";
72+
reg = <0x40800000 DT_SIZE_K(512)>;
73+
zephyr,memory-region = "SRAMHP";
74+
};
75+
76+
sramlp: memory@50000000 {
77+
compatible = "zephyr,memory-region", "mmio-sram";
78+
reg = <0x50000000 DT_SIZE_K(16)>;
79+
zephyr,memory-region = "SRAMLP ";
7380
};
7481

7582
intc: interrupt-controller@60010000 {

dts/xtensa/espressif/esp32/esp32_common.dtsi

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,22 @@
9494
};
9595

9696
soc {
97-
sram0: memory@3ffb0000 {
98-
compatible = "mmio-sram";
99-
reg = <0x3FFB0000 0x2c200>;
97+
sram0: memory@40070000 {
98+
compatible = "zephyr,memory-region", "mmio-sram";
99+
reg = <0x40070000 DT_SIZE_K(192)>;
100+
zephyr,memory-region = "SRAM0";
101+
};
102+
103+
sram1: memory@3ffe0000 {
104+
compatible = "zephyr,memory-region", "mmio-sram";
105+
reg = <0x3ffe0000 DT_SIZE_K(128)>;
106+
zephyr,memory-region = "SRAM1";
107+
};
108+
109+
sram2: memory@3ffae000 {
110+
compatible = "zephyr,memory-region", "mmio-sram";
111+
reg = <0x3ffae000 DT_SIZE_K(200)>;
112+
zephyr,memory-region = "SRAM2";
100113
};
101114

102115
ipmmem0: memory@3ffe5230 {

dts/xtensa/espressif/esp32s2/esp32s2_common.dtsi

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,15 @@
8080
ranges;
8181

8282
sram0: memory@3ffb0000 {
83-
compatible = "mmio-sram";
84-
reg = <0x3ffb0000 0x50000>;
83+
compatible = "zephyr,memory-region", "mmio-sram";
84+
reg = <0x3ffb0000 DT_SIZE_K(32)>;
85+
zephyr,memory-region = "SRAM0";
86+
};
87+
88+
sram1: memory@3ffb8000 {
89+
compatible = "zephyr,memory-region", "mmio-sram";
90+
reg = <0x3ffb8000 DT_SIZE_K(288)>;
91+
zephyr,memory-region = "SRAM1";
8592
};
8693

8794
intc: interrupt-controller@3f4c2000 {

dts/xtensa/espressif/esp32s3/esp32s3_appcpu.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "esp32s3_common.dtsi"
88

9-
&sram0 {
10-
reg = <0x3fc88000 DT_SIZE_K(10)>;
9+
&sram1 {
10+
reg = <0x3fc88000 DT_SIZE_K(416)>;
1111
status = "okay";
1212
};

dts/xtensa/espressif/esp32s3/esp32s3_common.dtsi

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,22 @@
8686
compatible = "simple-bus";
8787
ranges;
8888

89-
sram0: memory@3fc88000 {
90-
compatible = "mmio-sram";
91-
reg = <0x3fc88000 0x77FFF>;
89+
sram0: memory@40370000 {
90+
compatible = "zephyr,memory-region", "mmio-sram";
91+
reg = <0x40370000 DT_SIZE_K(32)>;
92+
zephyr,memory-region = "SRAM0";
93+
};
94+
95+
sram1: memory@3fc88000 {
96+
compatible = "zephyr,memory-region", "mmio-sram";
97+
reg = <0x3fc88000 DT_SIZE_K(416)>;
98+
zephyr,memory-region = "SRAM1";
99+
};
100+
101+
sram2: memory@3fcf0000 {
102+
compatible = "zephyr,memory-region", "mmio-sram";
103+
reg = <0x3fcf0000 DT_SIZE_K(64)>;
104+
zephyr,memory-region = "SRAM2";
92105
};
93106

94107
ipmmem0: memory@3fcb2000 {

0 commit comments

Comments
 (0)