1/*
2 * Copyright 2023 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/ {
8	chosen {
9		/delete-property/ zephyr,flash-controller;
10		/delete-property/ zephyr,code-partition;
11	};
12
13	aliases {
14		/delete-property/ magn0;
15		/delete-property/ accel0;
16	};
17};
18
19&flexspi {
20	/* RT1170 EVKB uses a different QSPI flash chip */
21	/delete-node/ is25wp128@0;
22	status = "okay";
23	reg = <0x400cc000 0x4000>, <0x30000000 DT_SIZE_M(64)>;
24	w25q512nw:w25q512nw@0 {
25		compatible = "nxp,imx-flexspi-nor";
26		size = <DT_SIZE_M(64*8)>;
27		reg = <0>;
28		spi-max-frequency = <133000000>;
29		status = "okay";
30		jedec-id = [ef 60 20];
31		erase-block-size = <4096>;
32		write-block-size = <1>;
33
34		partitions {
35			compatible = "fixed-partitions";
36			#address-cells = <1>;
37			#size-cells = <1>;
38
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 3 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(7) + DT_SIZE_K(12))>;
49			};
50			slot1_partition: partition@723000 {
51				label = "image-1";
52				reg = <0x00723000 DT_SIZE_M(7)>;
53			};
54			storage_partition: partition@E23000 {
55				label = "storage";
56				reg = <0x00E23000 (DT_SIZE_M(50) - DT_SIZE_K(140))>;
57			};
58		};
59	};
60};
61
62&lpspi1 {
63	dmas = <&edma_lpsr0 0 36>, <&edma_lpsr0 1 37>;
64	dma-names = "rx", "tx";
65	status = "okay";
66};
67
68&lpi2c5 {
69	/* FXOS accelerometer is not present in this board */
70	/delete-node/ fxos8700@1f;
71};
72
73/* Disable ethernet, as PHY is not supported */
74&enet {
75	status = "disabled";
76};
77