|
11 | 11 | #include <zephyr/dt-bindings/input/input-event-codes.h> |
12 | 12 | #include <mem.h> |
13 | 13 |
|
| 14 | +#include "mps3_common_ns.dtsi" |
| 15 | + |
14 | 16 | / { |
15 | 17 | compatible = "arm,mps3-an555"; |
16 | 18 | #address-cells = <1>; |
|
19 | 21 | chosen { |
20 | 22 | zephyr,console = &uart0; |
21 | 23 | zephyr,shell-uart = &uart0; |
22 | | - zephyr,sram = &ram; |
23 | | - zephyr,flash = &code; |
| 24 | + zephyr,sram = &isram_ns; |
| 25 | + zephyr,flash = &reserved_memory; |
| 26 | + zephyr,code-partition = &slot0_ns_partition; |
24 | 27 | }; |
25 | 28 |
|
26 | 29 | cpus { |
|
58 | 61 |
|
59 | 62 | dtcm: dtcm@20000000 { |
60 | 63 | compatible = "zephyr,memory-region"; |
61 | | - reg = <0x20000000 DT_SIZE_K(512)>; |
| 64 | + reg = <0x20000000 DT_SIZE_K(32)>; |
62 | 65 | zephyr,memory-region = "DTCM"; |
63 | 66 | }; |
64 | 67 |
|
65 | | - isram: sram@21000000 { |
| 68 | + /* The ISRAM blocks are used for both S and NS data. The S reserves 128k |
| 69 | + * bytes and the remaining can be used by the NS firmware. |
| 70 | + */ |
| 71 | + isram_s: secure_data@21000000 { |
66 | 72 | compatible = "zephyr,memory-region", "mmio-sram"; |
67 | | - reg = <0x21000000 DT_SIZE_M(4)>; |
68 | | - zephyr,memory-region = "ISRAM"; |
| 73 | + reg = <0x21000000 DT_SIZE_K(128)>; |
| 74 | + zephyr,memory-region = "ISRAM-Secure"; |
69 | 75 | }; |
70 | 76 |
|
71 | | - reserved-memory { |
72 | | - #address-cells = <1>; |
73 | | - #size-cells = <1>; |
74 | | - ranges; |
75 | | - |
76 | | - /* The memory regions defined below must match what the TF-M |
77 | | - * project has defined for that board - a single image boot is |
78 | | - * assumed. Please see the memory layout in: |
79 | | - * https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/mps3/corstone310/common/partition/flash_layout.h |
80 | | - */ |
81 | | - |
82 | | - code: memory@1000000 { |
83 | | - reg = <0x01000000 DT_SIZE_M(2)>; |
84 | | - }; |
85 | | - |
86 | | - ram: memory@21000000 { |
87 | | - reg = <0x21000000 DT_SIZE_M(4)>; |
88 | | - }; |
| 77 | + isram_ns: non_secure_data@21020000 { |
| 78 | + compatible = "zephyr,memory-region", "mmio-sram"; |
| 79 | + reg = <0x21020000 (DT_SIZE_M(4) - DT_SIZE_K(128))>; |
| 80 | + zephyr,memory-region = "ISRAM-Non-Secure"; |
89 | 81 | }; |
90 | 82 |
|
91 | 83 | soc { |
|
0 commit comments