|
21 | 21 | zephyr,flash = &flash0;
|
22 | 22 | zephyr,display = <dc;
|
23 | 23 | zephyr,canbus = &fdcan1;
|
| 24 | + zephyr,flash-controller = &mx25lm51245; |
| 25 | + zephyr,code-partition = &slot1_partition; |
24 | 26 | };
|
25 | 27 |
|
26 | 28 | leds {
|
|
239 | 241 | def-back-color-blue = <0xFF>;
|
240 | 242 | };
|
241 | 243 |
|
| 244 | +&flash0 { |
| 245 | + partitions { |
| 246 | + compatible = "fixed-partitions"; |
| 247 | + #address-cells = <1>; |
| 248 | + #size-cells = <1>; |
| 249 | + |
| 250 | + boot_partition: partition@0 { |
| 251 | + label = "mcuboot"; |
| 252 | + reg = <0x00000000 DT_SIZE_K(64)>; |
| 253 | + read-only; |
| 254 | + }; |
| 255 | + |
| 256 | + /* |
| 257 | + * The flash starting at offset 0x10000 and ending at |
| 258 | + * offset 0x1ffff is reserved for use by the application. |
| 259 | + */ |
| 260 | + |
| 261 | + slot0_partition: partition@10000 { |
| 262 | + label = "image-0"; |
| 263 | + reg = <0x00010000 DT_SIZE_K(864)>; |
| 264 | + }; |
| 265 | + |
| 266 | + scratch_partition: partition@f8000 { |
| 267 | + label = "image-scratch"; |
| 268 | + reg = <0x000F8000 DT_SIZE_K(16)>; |
| 269 | + }; |
| 270 | + }; |
| 271 | +}; |
| 272 | + |
242 | 273 | &octospi1 {
|
243 | 274 | pinctrl-0 = <&octospim_p1_clk_pb2 &octospim_p1_ncs_pg6
|
244 | 275 | &octospim_p1_io0_pd11 &octospim_p1_io1_pf9
|
|
250 | 281 |
|
251 | 282 | status = "okay";
|
252 | 283 |
|
253 |
| - mx25lm51245: ospi-nor-flash@0 { |
| 284 | + mx25lm51245: ospi-nor-flash@90000000 { |
254 | 285 | compatible = "st,stm32-ospi-nor";
|
255 |
| - reg = <0>; |
| 286 | + reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Megabits */ |
256 | 287 | ospi-max-frequency = <DT_FREQ_M(50)>;
|
257 |
| - size = <DT_SIZE_M(512)>; /* 512 Megabits */ |
258 | 288 | spi-bus-width = <OSPI_OPI_MODE>;
|
259 | 289 | data-rate = <OSPI_DTR_TRANSFER>;
|
260 | 290 | status = "okay";
|
261 |
| - sfdp-bfp = [ |
262 |
| - 53 46 44 50 06 01 02 ff |
263 |
| - 00 06 01 10 30 00 00 ff |
264 |
| - C2 00 01 04 10 01 00 ff |
265 |
| - 84 00 01 02 C0 00 00 ff |
266 |
| - 00 00 00 00 |
267 |
| - ]; |
268 | 291 |
|
269 | 292 | partitions {
|
270 | 293 | compatible = "fixed-partitions";
|
271 | 294 | #address-cells = <1>;
|
272 | 295 | #size-cells = <1>;
|
273 | 296 |
|
274 |
| - partition@0 { |
| 297 | + /* put image at offset 0 in slot1 */ |
| 298 | + slot1_partition:partition@0 { |
275 | 299 | label = "nor";
|
276 |
| - reg = <0x00000000 DT_SIZE_M(4)>; |
277 |
| - }; |
| 300 | + reg = <0x00000000 DT_SIZE_M(32)>; |
| 301 | + }; |
278 | 302 | };
|
279 | 303 | };
|
280 | 304 | };
|
0 commit comments