Skip to content

Commit a7a05b9

Browse files
Marek Matejkartben
authored andcommitted
dts: espressif: Update AMP sram nodes for ESP32 and ESP32-S3
Set AMP dts nodes (ipm, mbox, ...) to use fixed locations in reserved memory areas. Those areas memories are delimited in the `memory.h`. Size of the occupied areas can be calculated but the dts nodes addresses needs to be set manually in every case. Signed-off-by: Marek Matej <[email protected]>
1 parent ea76fbd commit a7a05b9

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

dts/xtensa/espressif/esp32/esp32_common.dtsi

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,37 @@
114114

115115
ipmmem0: memory@3ffe5230 {
116116
compatible = "mmio-sram";
117-
reg = <0x3FFE5230 0x400>;
117+
reg = <0x3ffe5230 0x400>;
118118
};
119119

120120
shm0: memory@3ffe5630 {
121121
compatible = "mmio-sram";
122-
reg = <0x3FFE5630 0x3C00>;
122+
reg = <0x3ffe5630 0x4000>;
123+
};
124+
125+
ipm0: ipm@3ffe9630 {
126+
compatible = "espressif,esp32-ipm";
127+
reg = <0x3ffe9630 0x8>;
128+
status = "disabled";
129+
shared-memory = <&ipmmem0>;
130+
shared-memory-size = <0x400>;
131+
interrupts =
132+
<FROM_CPU_INTR0_SOURCE IRQ_DEFAULT_PRIORITY 0>,
133+
<FROM_CPU_INTR1_SOURCE IRQ_DEFAULT_PRIORITY 0>;
134+
interrupt-parent = <&intc>;
135+
};
136+
137+
mbox0: mbox@3ffe9638 {
138+
compatible = "espressif,mbox-esp32";
139+
reg = <0x3ffe9638 0x8>;
140+
status = "disabled";
141+
shared-memory = <&ipmmem0>;
142+
shared-memory-size = <0x400>;
143+
interrupts =
144+
<FROM_CPU_INTR0_SOURCE IRQ_DEFAULT_PRIORITY 0>,
145+
<FROM_CPU_INTR1_SOURCE IRQ_DEFAULT_PRIORITY 0>;
146+
interrupt-parent = <&intc>;
147+
#mbox-cells = <1>;
123148
};
124149

125150
intc: interrupt-controller@3ff00104 {
@@ -172,31 +197,6 @@
172197
status = "disabled";
173198
};
174199

175-
ipm0: ipm@3ffed238 {
176-
compatible = "espressif,esp32-ipm";
177-
reg = <0x3FFED238 0x8>;
178-
status = "disabled";
179-
shared-memory = <&ipmmem0>;
180-
shared-memory-size = <0x400>;
181-
interrupts =
182-
<FROM_CPU_INTR0_SOURCE IRQ_DEFAULT_PRIORITY 0>,
183-
<FROM_CPU_INTR1_SOURCE IRQ_DEFAULT_PRIORITY 0>;
184-
interrupt-parent = <&intc>;
185-
};
186-
187-
mbox0: mbox@3ffed240 {
188-
compatible = "espressif,mbox-esp32";
189-
reg = <0x3FFED240 0x8>;
190-
status = "disabled";
191-
shared-memory = <&ipmmem0>;
192-
shared-memory-size = <0x400>;
193-
interrupts =
194-
<FROM_CPU_INTR0_SOURCE IRQ_DEFAULT_PRIORITY 0>,
195-
<FROM_CPU_INTR1_SOURCE IRQ_DEFAULT_PRIORITY 0>;
196-
interrupt-parent = <&intc>;
197-
#mbox-cells = <1>;
198-
};
199-
200200
ipi0: ipi@3f4c0058 {
201201
compatible = "espressif,crosscore-interrupt";
202202
reg = <0x3f4c0058 0x4>;

dts/xtensa/espressif/esp32s3/esp32s3_common.dtsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,19 @@
104104
zephyr,memory-region = "SRAM2";
105105
};
106106

107-
ipmmem0: memory@3fcb2000 {
107+
ipmmem0: memory@3fce5000 {
108108
compatible = "mmio-sram";
109-
reg = <0x3fcb2000 0x400>;
109+
reg = <0x3fce5000 0x400>;
110110
};
111111

112-
shm0: memory@3fcb2400 {
112+
shm0: memory@3fce5400 {
113113
compatible = "mmio-sram";
114-
reg = <0x3fcb2400 0x3c00>;
114+
reg = <0x3fce5400 0x4000>;
115115
};
116116

117-
ipm0: ipm@3fcb6000 {
117+
ipm0: ipm@3fce9400 {
118118
compatible = "espressif,esp32-ipm";
119-
reg = <0x3fcb6000 0x8>;
119+
reg = <0x3fce9400 0x8>;
120120
status = "disabled";
121121
shared-memory = <&ipmmem0>;
122122
shared-memory-size = <0x400>;
@@ -126,9 +126,9 @@
126126
interrupt-parent = <&intc>;
127127
};
128128

129-
mbox0: mbox@3fcb6008 {
129+
mbox0: mbox@3fce9408 {
130130
compatible = "espressif,mbox-esp32";
131-
reg = <0x3fcb6008 0x8>;
131+
reg = <0x3fce9408 0x8>;
132132
status = "disabled";
133133
shared-memory = <&ipmmem0>;
134134
shared-memory-size = <0x400>;

0 commit comments

Comments
 (0)