1/* 2 * Copyright (c) 2018, NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include "mimxrt1060_evk.dts" 8 9/delete-node/ &is25wp064; 10 11/ { 12 chosen { 13 zephyr,flash-controller = &s26ks512s0; 14 zephyr,flash = &s26ks512s0; 15 zephyr,code-partition = &slot0_partition; 16 }; 17}; 18 19&flexspi { 20 status = "okay"; 21 ahb-prefetch; 22 ahb-read-addr-opt; 23 ahb-bufferable; 24 ahb-cacheable; 25 sck-differential-clock; 26 combination-mode; 27 rx-clock-source = <3>; 28 reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(64)>; 29 s26ks512s0: s26ks512s@0 { 30 compatible = "nxp,imx-flexspi-hyperflash"; 31 size = <DT_SIZE_M(64*8)>; 32 reg = <0>; 33 spi-max-frequency = <166000000>; 34 word-addressable; 35 cs-interval-unit = <1>; 36 cs-interval = <2>; 37 cs-hold-time = <0>; 38 cs-setup-time = <3>; 39 data-valid-time = <1>; 40 column-space = <3>; 41 ahb-write-wait-unit = <2>; 42 ahb-write-wait-interval = <20>; 43 status = "okay"; 44 erase-block-size = <4096>; 45 write-block-size = <16>; 46 47 partitions { 48 compatible = "fixed-partitions"; 49 #address-cells = <1>; 50 #size-cells = <1>; 51 52 boot_partition: partition@0 { 53 label = "mcuboot"; 54 reg = <0x00000000 DT_SIZE_K(256)>; 55 }; 56 /* Note slot 0 has one additional sector, 57 * this is intended for use with the swap move algorithm 58 */ 59 slot0_partition: partition@40000 { 60 label = "image-0"; 61 reg = <0x00040000 (DT_SIZE_M(3) + DT_SIZE_K(4))>; 62 }; 63 slot1_partition: partition@341000 { 64 label = "image-1"; 65 reg = <0x00341000 DT_SIZE_M(3)>; 66 }; 67 storage_partition: partition@641000 { 68 label = "storage"; 69 reg = <0x00641000 (DT_SIZE_M(57) + DT_SIZE_K(764))>; 70 }; 71 }; 72 }; 73}; 74