File tree Expand file tree Collapse file tree 4 files changed +54
-6
lines changed
boards/nxp/mimxrt1180_evk Expand file tree Collapse file tree 4 files changed +54
-6
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ if(CONFIG_NXP_IMXRT_BOOT_HEADER)
22
22
# used on your custom board.
23
23
zephyr_compile_definitions (XIP_EXTERNAL_FLASH=1 )
24
24
zephyr_compile_definitions (XIP_BOOT_HEADER_ENABLE=1 )
25
- if (CONFIG_EXTERNAL_MEM_CONFIG_DATA AND CONFIG_NXP_IMX_EXTERNAL_HYPERRAM )
26
- zephyr_compile_definitions (USE_HYPERRAM )
27
- endif ()
28
25
zephyr_library_sources (${RT1180_BOARD_DIR} /xip/evkmimxrt1180_flexspi_nor_config.c )
29
26
zephyr_library_include_directories (${RT1180_BOARD_DIR} /xip )
30
27
zephyr_library_include_directories (${RT1180_BOARD_DIR} )
31
28
endif ()
29
+ if (CONFIG_EXTERNAL_MEM_CONFIG_DATA AND CONFIG_NXP_IMX_EXTERNAL_HYPERRAM )
30
+ zephyr_compile_definitions (USE_HYPERRAM )
31
+ zephyr_library_sources (${RT1180_BOARD_DIR} /xip/evkmimxrt1180_flexspi_nor_config.c )
32
+ endif ()
32
33
endif ()
Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ configuration supports the following hardware features:
112
112
+-----------+------------+-------------------------------------+
113
113
| LPTMR | on-chip | counter |
114
114
+-----------+------------+-------------------------------------+
115
+ | FLEXSPI | on-chip | flash programming |
116
+ +-----------+------------+-------------------------------------+
115
117
116
118
The default configuration can be found in the defconfig file:
117
119
:zephyr_file: `boards/nxp/mimxrt1180_evk/mimxrt1180_evk_mimxrt1189_cm33_defconfig `
Original file line number Diff line number Diff line change 115
115
slew-rate = "fast";
116
116
};
117
117
};
118
+
119
+ pinmux_flexspi1: pinmux_flexspi1 {
120
+ group0 {
121
+ pinmux = <&iomuxc_gpio_sd_b2_05_flexspi1_b_dqs>,
122
+ <&iomuxc_gpio_sd_b2_06_flexspi1_b_ss0_b>,
123
+ <&iomuxc_gpio_sd_b2_07_flexspi1_b_sclk>,
124
+ <&iomuxc_gpio_sd_b2_08_flexspi1_b_data0>,
125
+ <&iomuxc_gpio_sd_b2_09_flexspi1_b_data1>,
126
+ <&iomuxc_gpio_sd_b2_10_flexspi1_b_data2>,
127
+ <&iomuxc_gpio_sd_b2_11_flexspi1_b_data3>;
128
+ bias-pull-down;
129
+ input-enable;
130
+ };
131
+ };
118
132
};
Original file line number Diff line number Diff line change 55
55
status = "okay";
56
56
};
57
57
58
- &flexspi1 {
58
+ &flexspi {
59
+ pinctrl-0 = <&pinmux_flexspi1>;
60
+ pinctrl-names = "default";
61
+ };
62
+
63
+ &flexspi {
59
64
status = "okay";
60
65
ahb-prefetch;
61
66
ahb-read-addr-opt;
62
67
rx-clock-source = <1>;
63
68
w25q128jw: w25q128jw@0 {
64
69
compatible = "nxp,imx-flexspi-nor";
65
- size = <134217728 >;
70
+ size = <DT_SIZE_M(16*8) >;
66
71
reg = <0>;
67
72
spi-max-frequency = <133000000>;
68
73
status = "okay";
69
- jedec-id = [ef 80 18];
74
+ jedec-id = [ef 60 18];
70
75
erase-block-size = <4096>;
71
76
write-block-size = <1>;
77
+
78
+ partitions {
79
+ compatible = "fixed-partitions";
80
+ #address-cells = <1>;
81
+ #size-cells = <1>;
82
+
83
+ boot_partition: partition@0 {
84
+ label = "mcuboot";
85
+ reg = <0x00000000 DT_SIZE_K(128)>;
86
+ };
87
+ /* The MCUBoot swap-move algorithm uses the last 3 sectors
88
+ * of the primary slot0 for swap status and move.
89
+ */
90
+ slot0_partition: partition@20000 {
91
+ label = "image-0";
92
+ reg = <0x00020000 (DT_SIZE_M(7) + DT_SIZE_K(12))>;
93
+ };
94
+ slot1_partition: partition@723000 {
95
+ label = "image-1";
96
+ reg = <0x00723000 DT_SIZE_M(7)>;
97
+ };
98
+ storage_partition: partition@E23000 {
99
+ label = "storage";
100
+ reg = <0x00E23000 (DT_SIZE_M(2) - DT_SIZE_K(140))>;
101
+ };
102
+ };
72
103
};
73
104
};
74
105
You can’t perform that action at this time.
0 commit comments