Skip to content

Commit e12e126

Browse files
Mikkel Jakobsennashif
Mikkel Jakobsen
authored andcommitted
boards: arm: Add mcuboot flash partitions to mimxrt1024_evk
Adds flash partitions and chosen nodes to the mimxrt1024_evk device tree to support mcuboot on the internal QSPI flash. Also adds missing zephyr,itcm chosen node. Also enables FlexSPI flash driver XIP mode support on this board to support mcuboot. Signed-off-by: Mikkel Jakobsen <[email protected]>
1 parent ef8434d commit e12e126

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

boards/arm/mimxrt1024_evk/Kconfig.defconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ choice CODE_LOCATION
1212
default CODE_FLEXSPI
1313
endchoice
1414

15+
config FLASH_MCUX_FLEXSPI_NOR
16+
default y if FLASH
17+
18+
config FLASH_MCUX_FLEXSPI_XIP
19+
default y if FLASH
20+
1521
endif # BOARD_MIMXRT1024_EVK

boards/arm/mimxrt1024_evk/mimxrt1024_evk.dts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
};
1919

2020
chosen {
21+
zephyr,flash-controller = &flexspi;
22+
zephyr,flash = &is25wp032;
23+
zephyr,code-partition = &slot0_partition;
2124
zephyr,sram = &sdram0;
25+
zephyr,itcm = &itcm;
2226
zephyr,dtcm = &dtcm;
2327
zephyr,console = &lpuart1;
2428
zephyr,shell-uart = &lpuart1;
@@ -47,6 +51,35 @@
4751
};
4852
};
4953

54+
&is25wp032 {
55+
status = "okay";
56+
partitions {
57+
compatible = "fixed-partitions";
58+
#address-cells = <1>;
59+
#size-cells = <1>;
60+
61+
boot_partition: partition@0 {
62+
label = "mcuboot";
63+
reg = <0x00000000 DT_SIZE_K(64)>;
64+
};
65+
66+
slot0_partition: partition@10000 {
67+
label = "image-0";
68+
reg = <0x00010000 DT_SIZE_K(1984)>;
69+
};
70+
71+
slot1_partition: partition@200000 {
72+
label = "image-1";
73+
reg = <0x00200000 DT_SIZE_K(1984)>;
74+
};
75+
76+
scratch_partition: partition@3f0000 {
77+
label = "image-scratch";
78+
reg = <0x003f0000 DT_SIZE_K(64)>;
79+
};
80+
};
81+
};
82+
5083
&lpuart1 {
5184
status = "okay";
5285
current-speed = <115200>;

0 commit comments

Comments
 (0)