1/* 2 * Copyright 2024 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include "mimxrt1060_evk.dtsi" 8 9/ { 10 chosen { 11 zephyr,flash-controller = &is25wp064; 12 zephyr,flash = &is25wp064; 13 zephyr,code-partition = &slot0_partition; 14 }; 15}; 16 17&flexspi { 18 status = "okay"; 19 pinctrl-0 = <&pinmux_flexspi1>; 20 pinctrl-names = "default"; 21 ahb-prefetch; 22 ahb-read-addr-opt; 23 rx-clock-source = <1>; 24 reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>; 25 is25wp064: is25wp064@0 { 26 compatible = "nxp,imx-flexspi-nor"; 27 size = <67108864>; 28 reg = <0>; 29 spi-max-frequency = <104000000>; 30 status = "okay"; 31 jedec-id = [9d 70 17]; 32 erase-block-size = <4096>; 33 write-block-size = <1>; 34 35 partitions { 36 compatible = "fixed-partitions"; 37 #address-cells = <1>; 38 #size-cells = <1>; 39 boot_partition: partition@0 { 40 label = "mcuboot"; 41 reg = <0x00000000 DT_SIZE_K(128)>; 42 }; 43 /* The MCUBoot swap-move algorithm uses the last 2 sectors 44 * of the primary slot0 for swap status and move. 45 */ 46 slot0_partition: partition@20000 { 47 label = "image-0"; 48 reg = <0x00020000 (DT_SIZE_M(3) + DT_SIZE_K(8))>; 49 }; 50 slot1_partition: partition@322000 { 51 label = "image-1"; 52 reg = <0x00322000 DT_SIZE_M(3)>; 53 }; 54 storage_partition: partition@622000 { 55 label = "storage"; 56 reg = <0x00622000 (DT_SIZE_M(2) - DT_SIZE_K(136))>; 57 }; 58 }; 59 }; 60}; 61