Skip to content

Commit 9a48044

Browse files
butokkartben
authored andcommitted
boards: nxp: mimxrt1060: fix flash module type for Rev. C.
- Fixes the flash module type used for MIMXRT1060-EVKC. It has the 16MB w25q128jw flash module - Fixes flash driver initialization failure for MIMXRT1060-EVKC. - Older MIMXRT1060-EVK/EVKB have the 8MB is25wp064 flash module. Signed-off-by: Andrej Butok <[email protected]>
1 parent e1210ba commit 9a48044

File tree

3 files changed

+61
-20
lines changed

3 files changed

+61
-20
lines changed

boards/nxp/mimxrt1060_evk/mimxrt1060_evk_mimxrt1062_qspi_C.overlay

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
*/
66

77
/ {
8+
chosen {
9+
zephyr,flash-controller = &w25q128jw;
10+
zephyr,flash = &w25q128jw;
11+
};
12+
813
aliases {
914
i2s-codec-tx = &sai1;
1015
i2s-tx = &sai1;
@@ -40,3 +45,49 @@
4045
};
4146

4247
};
48+
49+
/* MIMXRT1060-EVK/EVKB have the is25wp064 flash module, but EVKC has w25q128jw */
50+
51+
/delete-node/ &is25wp064;
52+
53+
&flexspi {
54+
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(16)>;
55+
56+
w25q128jw: w25q128jw@0 {
57+
compatible = "nxp,imx-flexspi-nor";
58+
size = <DT_SIZE_M(16*8)>;
59+
reg = <0>;
60+
spi-max-frequency = <133000000>;
61+
status = "okay";
62+
jedec-id = [ef 60 18];
63+
erase-block-size = <4096>;
64+
write-block-size = <1>;
65+
66+
partitions {
67+
compatible = "fixed-partitions";
68+
#address-cells = <1>;
69+
#size-cells = <1>;
70+
71+
/*
72+
* Partition sizes must be aligned
73+
* to the flash memory sector size of 4KB.
74+
*/
75+
boot_partition: partition@0 {
76+
label = "mcuboot";
77+
reg = <0x00000000 DT_SIZE_K(128)>;
78+
};
79+
slot0_partition: partition@20000 {
80+
label = "image-0";
81+
reg = <0x00020000 DT_SIZE_M(7)>;
82+
};
83+
slot1_partition: partition@720000 {
84+
label = "image-1";
85+
reg = <0x00720000 DT_SIZE_M(7)>;
86+
};
87+
storage_partition: partition@E20000 {
88+
label = "storage";
89+
reg = <0x00E20000 (DT_SIZE_M(2) - DT_SIZE_K(128))>;
90+
};
91+
};
92+
};
93+
};
Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
11
/*
2-
* Copyright (c) 2021 NXP
2+
* Copyright 2021,2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
&is25wp064 {
8-
partitions {
9-
compatible = "fixed-partitions";
10-
#address-cells = <1>;
11-
#size-cells = <1>;
7+
/delete-node/ &storage_partition;
128

13-
boot_partition: partition@0 {
14-
label = "mcuboot";
15-
reg = <0x00000000 DT_SIZE_K(128)>;
16-
};
17-
slot0_partition: partition@20000 {
18-
label = "image-0";
19-
reg = <0x00020000 (DT_SIZE_M(3) + DT_SIZE_K(8))>;
20-
};
21-
large_partition: partition@322000 {
9+
&w25q128jw {
10+
partitions {
11+
large_partition: partition@C00000 {
2212
label = "large";
23-
reg = <0x00322000 DT_SIZE_M(3)>;
13+
reg = <0x00C00000 DT_SIZE_M(3)>;
2414
};
25-
medium_partition: partition@622000 {
15+
medium_partition: partition@F00000 {
2616
label = "medium";
27-
reg = <0x00622000 DT_SIZE_K(960)>;
17+
reg = <0x00F00000 DT_SIZE_K(960)>;
2818
};
29-
small_partition: partition@712000 {
19+
small_partition: partition@FF0000 {
3020
label = "small";
31-
reg = <0x00712000 DT_SIZE_K(64)>;
21+
reg = <0x00FF0000 DT_SIZE_K(64)>;
3222
};
3323
};
3424
};

0 commit comments

Comments
 (0)