diff --git a/boards/arm/v2m_musca_b1/v2m_musca_b1_musca_b1_ns.dts b/boards/arm/v2m_musca_b1/v2m_musca_b1_musca_b1_ns.dts index c24d8c256754c..1a4560286ce05 100644 --- a/boards/arm/v2m_musca_b1/v2m_musca_b1_musca_b1_ns.dts +++ b/boards/arm/v2m_musca_b1/v2m_musca_b1_musca_b1_ns.dts @@ -6,6 +6,7 @@ /dts-v1/; +#include #include / { @@ -20,6 +21,7 @@ zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,shell-uart = &uart1; + zephyr,code-partition = &slot0_ns_partition; }; cpus { @@ -42,7 +44,44 @@ flash0: flash@a070000 { /* Embedded flash */ + compatible = "soc-nv-flash"; reg = <0xa070000 0x1a0000>; + erase-block-size = <4096>; + write-block-size = <4>; + #address-cells = <1>; + #size-cells = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* This code memory region must match what the TF-M + * project has defined for that board - the multi-image + * boot is used in Zephyr. See memory layout details in: + * + * https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/arm/musca_b1/partition/flash_layout.h + */ + slot0_partition: partition@0 { + reg = <0x00000000 DT_SIZE_K(256)>; + }; + + slot0_ns_partition: partition@40000 { + reg = <0x00040000 DT_SIZE_K(512)>; + }; + + slot1_partition: partition@c0000 { + reg = <0x000c0000 DT_SIZE_K(256)>; + }; + + slot1_ns_partition: partition@100000 { + reg = <0x00100000 DT_SIZE_K(512)>; + }; + + scratch_partition: partition@180000 { + reg = <0x00180000 DT_SIZE_K(96)>; + }; + }; }; sram0: memory@20040000 {