Skip to content

Commit e03db70

Browse files
ioannisgcarlescufi
authored andcommitted
boards: arm: nrf5340pdk: clean up sram0_shared definition
We do not want sram0_shared to represent physical ram; this is just a portion of sram reserved for shared memory between Application and Network MCU. Therfore, we remove the 'mmio' compatible property and transform this node to a reserved-memory node definition, inside which we define the sram0_shared node along with its reg property. In addition we correct the documentation about the shared memory, stressing that it is placed after the image RAM of nrf5340 Application MCU (not after the secure SRAM). Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 28310ea commit e03db70

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

boards/arm/nrf5340pdk_nrf5340/nrf5340pdk_nrf5340_shared_sram_planning_conf.dts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* This file is included by both nRF5340 CPUAPP (Application MCU)
99
* and nRF5340 CPUNET (Network MCU).
1010
* - 64 kB SRAM allocated as Shared memory (sram0_shared)
11-
* - Region defined after the secure SRAM partition of CPUAPP
11+
* - Region defined after the image SRAM of Application MCU
1212
*/
1313

1414
/ {
@@ -17,10 +17,14 @@
1717
zephyr,ipc_shm = &sram0_shared;
1818
};
1919

20-
/* SRAM allocated to shared memory */
21-
sram0_shared: memory@20070000 {
22-
device_type = "memory";
23-
compatible = "mmio-sram";
24-
reg = <0x20070000 DT_SIZE_K(64)>;
20+
reserved-memory {
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
ranges;
24+
25+
sram0_shared: memory@20070000 {
26+
/* SRAM allocated to shared memory */
27+
reg = <0x20070000 0x10000>;
28+
};
2529
};
2630
};

0 commit comments

Comments
 (0)