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