|
34 | 34 |
|
35 | 35 | /*
|
36 | 36 | * Following flash partition is compatible with requirements
|
37 |
| - * given in TFM configuration given for current board. |
38 |
| - * It might require adjustment depending on evolutions on TFM. |
| 37 | + * given in TF-M configuration given for current board. |
| 38 | + * |
| 39 | + * It might require adjustment depending on evolutions on TF-M. |
39 | 40 | */
|
40 |
| - |
41 | 41 | boot_partition: partition@0 {
|
42 | 42 | label = "mcuboot";
|
43 |
| - reg = <0x00000000 DT_SIZE_K(224)>; |
| 43 | + reg = <0x00000000 DT_SIZE_K(384)>; |
44 | 44 | read-only;
|
45 | 45 | };
|
46 | 46 |
|
47 | 47 | /* Secure image primary slot */
|
48 |
| - slot0_partition: partition@38000 { |
| 48 | + slot0_partition: partition@60000 { |
49 | 49 | label = "image-0";
|
50 |
| - reg = <0x00038000 DT_SIZE_K(384)>; |
| 50 | + reg = <0x00060000 DT_SIZE_K(512)>; |
51 | 51 | };
|
52 | 52 |
|
53 | 53 | /* Non-secure image primary slot */
|
54 |
| - slot0_ns_partition: partition@98000 { |
| 54 | + slot0_ns_partition: partition@e0000 { |
55 | 55 | label = "image-0-nonsecure";
|
56 |
| - reg = <0x00098000 DT_SIZE_K(512)>; |
| 56 | + reg = <0x000e0000 DT_SIZE_K(1024)>; |
| 57 | + }; |
| 58 | + |
| 59 | + /* Internal Non Volatile Storage */ |
| 60 | + storage_partition: partition@1e0000 { |
| 61 | + label = "storage"; |
| 62 | + reg = <0x001e0000 DT_SIZE_K(128)>; |
57 | 63 | };
|
| 64 | + }; |
| 65 | +}; |
| 66 | + |
| 67 | +&mx25lm51245 { |
| 68 | + |
| 69 | + partitions { |
| 70 | + compatible = "fixed-partitions"; |
| 71 | + #address-cells = <1>; |
| 72 | + #size-cells = <1>; |
| 73 | + |
| 74 | + /* |
| 75 | + * The flash partition (0 and 1) are aligned |
| 76 | + * according to application image size in MCU flash. |
| 77 | + */ |
58 | 78 |
|
59 | 79 | /* Secure image secondary slot */
|
60 |
| - slot1_partition: partition@118000 { |
| 80 | + slot1_partition: partition@0 { |
61 | 81 | label = "image-1";
|
62 |
| - reg = <0x00118000 DT_SIZE_K(384)>; |
| 82 | + reg = <0x00000000 DT_SIZE_K(512)>; |
63 | 83 | };
|
64 | 84 |
|
65 |
| - /* Non-secure image secondary slot */ |
66 |
| - slot1_ns_partition: partition@178000 { |
| 85 | + slot1_ns_partition: partition@80000 { |
67 | 86 | label = "image-1-nonsecure";
|
68 |
| - reg = <0x00178000 DT_SIZE_K(512)>; |
| 87 | + reg = <0x00080000 DT_SIZE_K(1024)>; |
69 | 88 | };
|
70 | 89 |
|
71 |
| - /* Applicative Non Volatile Storage */ |
72 |
| - storage_partition: partition@1f8000 { |
73 |
| - label = "storage"; |
74 |
| - reg = <0x001f8000 DT_SIZE_K(16)>; |
| 90 | + external_partition: partition@e0000 { |
| 91 | + label = "external"; |
| 92 | + reg = <0x000e0000 (DT_SIZE_M(64) - DT_SIZE_K(1024) - DT_SIZE_K(512))>; |
75 | 93 | };
|
76 | 94 | };
|
77 | 95 | };
|
0 commit comments