|
16 | 16 | aliases {
|
17 | 17 | led0 = &led_blue;
|
18 | 18 | led1 = &led_green;
|
| 19 | + led2 = &led_white; |
| 20 | + led3 = &led_red; |
19 | 21 | sw0 = &key_1;
|
20 | 22 | pwm-led0 = &pwm_led_blue;
|
21 | 23 | pwm-0 = &pwm0;
|
|
69 | 71 | zephyr,flash = &flash;
|
70 | 72 | zephyr,flash-controller = &flash_mspi;
|
71 | 73 | zephyr,entropy = &trng0;
|
| 74 | + zephyr,code-partition = &slot0_partition; |
72 | 75 | };
|
73 | 76 | };
|
74 | 77 |
|
|
86 | 89 |
|
87 | 90 | &flash {
|
88 | 91 | reg = <0x20000000 0x100000>;
|
| 92 | + |
| 93 | + partitions { |
| 94 | + compatible = "fixed-partitions"; |
| 95 | + #address-cells = <1>; |
| 96 | + #size-cells = <1>; |
| 97 | + |
| 98 | + boot_partition: partition@0 { |
| 99 | + label = "mcuboot"; |
| 100 | + reg = <0x00000000 0x10000>; |
| 101 | + }; |
| 102 | + slot0_partition: partition@10000 { |
| 103 | + label = "image-0"; |
| 104 | + reg = <0x10000 0x70000>; |
| 105 | + }; |
| 106 | + slot1_partition: partition@80000 { |
| 107 | + label = "image-1"; |
| 108 | + reg = <0x80000 0x70000>; |
| 109 | + }; |
| 110 | + scratch_partition: partition@f0000 { |
| 111 | + label = "image-scratch"; |
| 112 | + reg = <0xf0000 0x4000>; |
| 113 | + }; |
| 114 | + storage_partition: partition@f4000 { |
| 115 | + label = "storage"; |
| 116 | + reg = <0xf4000 0x0000b000>; |
| 117 | + /* region <0xff000 0x1000> is reserved for |
| 118 | + * Telink B91 SDK's data (BLE MAC address etc.) |
| 119 | + */ |
| 120 | + }; |
| 121 | + }; |
89 | 122 | };
|
90 | 123 |
|
91 | 124 | &gpiob {
|
|
144 | 177 | status = "okay";
|
145 | 178 | vref = "ADC_VREF_1P2V";
|
146 | 179 | };
|
147 |
| - |
148 |
| -&flash_mspi { |
149 |
| - partitions { |
150 |
| - compatible = "fixed-partitions"; |
151 |
| - #address-cells = <1>; |
152 |
| - #size-cells = <1>; |
153 |
| - |
154 |
| - boot_partition: partition@0 { |
155 |
| - label = "mcuboot"; |
156 |
| - reg = <0x00000000 0x8000>; |
157 |
| - }; |
158 |
| - slot0_partition: partition@8000 { |
159 |
| - label = "image-0"; |
160 |
| - reg = <0x00008000 0x1a000>; |
161 |
| - }; |
162 |
| - slot1_partition: partition@22000 { |
163 |
| - label = "image-1"; |
164 |
| - reg = <0x00022000 0x1a000>; |
165 |
| - }; |
166 |
| - scratch_partition: partition@3c000 { |
167 |
| - label = "image-scratch"; |
168 |
| - reg = <0x0003c000 0x2000>; |
169 |
| - }; |
170 |
| - storage_partition: partition@f0000 { |
171 |
| - label = "storage"; |
172 |
| - reg = <0x000f0000 0x00008000>; |
173 |
| - /* region 0x000f8000 .. 0x000FFFFF |
174 |
| - * is reserved for factory calibration |
175 |
| - */ |
176 |
| - }; |
177 |
| - }; |
178 |
| -}; |
|
0 commit comments