Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions boards/arm/mimxrt1024_evk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ choice CODE_LOCATION
default CODE_FLEXSPI
endchoice

config FLASH_MCUX_FLEXSPI_NOR
default y if FLASH

config FLASH_MCUX_FLEXSPI_XIP
default y if FLASH

endif # BOARD_MIMXRT1024_EVK
33 changes: 33 additions & 0 deletions boards/arm/mimxrt1024_evk/mimxrt1024_evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
};

chosen {
zephyr,flash-controller = &flexspi;
zephyr,flash = &is25wp032;
zephyr,code-partition = &slot0_partition;
zephyr,sram = &sdram0;
zephyr,itcm = &itcm;
zephyr,dtcm = &dtcm;
zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1;
Expand Down Expand Up @@ -47,6 +51,35 @@
};
};

&is25wp032 {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};

slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(1984)>;
};

slot1_partition: partition@200000 {
label = "image-1";
reg = <0x00200000 DT_SIZE_K(1984)>;
};

scratch_partition: partition@3f0000 {
label = "image-scratch";
reg = <0x003f0000 DT_SIZE_K(64)>;
};
};
};

&lpuart1 {
status = "okay";
current-speed = <115200>;
Expand Down
11 changes: 7 additions & 4 deletions dts/arm/nxp/nxp_rt1024.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@
};

&flexspi {
status = "okay";
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(4)>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;
label = "IS25WP064";
is25wp032: is25wp032@0 {
compatible = "nxp,imx-flexspi-nor";
size = <DT_SIZE_M(32)>;
label = "IS25WP032";
reg = <0>;
spi-max-frequency = <133000000>;
status = "okay";
jedec-id = [9d 70 17];
erase-block-size = <DT_SIZE_K(4)>;
write-block-size = <1>;
};
};
1 change: 1 addition & 0 deletions soc/arm/nxp_imx/rt/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ config SOC_MIMXRT1024
select HAS_MCUX_CACHE
select HAS_MCUX_CCM
select HAS_MCUX_ENET
select HAS_MCUX_FLEXSPI
select HAS_MCUX_IGPIO
select HAS_MCUX_LPI2C
select HAS_MCUX_LPSPI
Expand Down