boards: arm: actinius_icarus: update RAM partitions in DTS

Add chosen nodes for secure and non-secure RAM partitions
and update the common DTS to have a reserved-memory
node with all reserved RAM partitions

Signed-off-by: Alex Tsamakos <alex@actinius.com>
This commit is contained in:
Alex Tsamakos 2020-09-07 17:11:56 +02:00 committed by Kumar Gala
parent f161223637
commit da17aca73e
3 changed files with 22 additions and 11 deletions

View File

@ -10,8 +10,10 @@
/ {
chosen {
zephyr,sram = &sram0;
zephyr,sram = &sram0_s;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,sram-secure-partition = &sram0_s;
zephyr,sram-non-secure-partition = &sram0_ns;
};
};

View File

@ -208,14 +208,23 @@
};
/ {
/* SRAM allocated and used by the BSD library */
sram0_bsd: memory@20010000 {
compatible = "mmio-sram";
};
/* SRAM allocated to the Non-Secure image */
sram0_ns: memory@20020000 {
compatible = "mmio-sram";
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
sram0_s: image_s@20000000 {
/* Secure image memory */
};
sram0_bsd: image_bsd@20010000 {
/* BSD (shared) memory */
};
sram0_ns: image_ns@20020000 {
/* Non-Secure image memory */
};
};
};

View File

@ -39,13 +39,13 @@
/* Default SRAM planning when building for nRF9160 with
* ARM TrustZone-M support
* - Lowest 64 kB SRAM allocated to Secure image (sram0).
* - Lowest 64 kB SRAM allocated to Secure image (sram0_s).
* - 64 kB SRAM reserved for and used by the BSD socket
* library.
* library (sram0_bsd).
* - Upper 128 kB allocated to Non-Secure image (sram0_ns).
*/
&sram0 {
&sram0_s {
reg = <0x20000000 DT_SIZE_K(64)>;
};