Skip to content

Commit d5263f8

Browse files
ioannisgcarlescufi
authored andcommitted
boards: arm: nrf9160_dk: clean up sram0_ns and sram0_bsd definitions
We do not want sram0_ns and sram0_bsd to represent physical ram; these are just portions of sram reserved for the non-secure image and the bsd library, respectively. Thus we can remove the compatible property from these nodes. We also make use of 'reserved-memory' to represent the different memory partitions to be used by the nrf9160 builds. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 5628861 commit d5263f8

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common.dts

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,23 @@
180180
};
181181

182182
/ {
183-
/* SRAM allocated to the Secure image */
184-
sram0_s: memory@20000000 {
185-
label = "secure_sram_memory";
186-
};
187183

188-
/* SRAM allocated and used by the BSD library */
189-
sram0_bsd: memory@20010000 {
190-
compatible = "mmio-sram";
191-
};
184+
reserved-memory {
185+
#address-cells = <1>;
186+
#size-cells = <1>;
187+
ranges;
192188

193-
/* SRAM allocated to the Non-Secure image */
194-
sram0_ns: memory@20020000 {
195-
compatible = "mmio-sram";
189+
sram0_s: image_s@20000000 {
190+
/* Secure image memory */
191+
};
192+
193+
sram0_bsd: image_bsd@20010000 {
194+
/* BSD (shared) memory */
195+
};
196+
197+
sram0_ns: image_ns@20020000 {
198+
/* Non-Secure image memory */
199+
};
196200
};
197201
};
198202

0 commit comments

Comments
 (0)