59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
/*
|
|
* Copyright 2024 NXP
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
chosen {
|
|
zephyr,flash-controller = &is25wp064;
|
|
zephyr,flash = &is25wp064;
|
|
zephyr,code-partition = &slot0_partition;
|
|
};
|
|
};
|
|
|
|
&flexspi {
|
|
status = "okay";
|
|
pinctrl-0 = <&pinmux_flexspi1>;
|
|
pinctrl-names = "default";
|
|
ahb-prefetch;
|
|
ahb-read-addr-opt;
|
|
rx-clock-source = <1>;
|
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
|
|
is25wp064: is25wp064@0 {
|
|
compatible = "nxp,imx-flexspi-nor";
|
|
size = <67108864>;
|
|
reg = <0>;
|
|
spi-max-frequency = <133000000>;
|
|
status = "okay";
|
|
jedec-id = [9d 70 17];
|
|
erase-block-size = <4096>;
|
|
write-block-size = <1>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
boot_partition: partition@0 {
|
|
label = "mcuboot";
|
|
reg = <0x00000000 DT_SIZE_K(128)>;
|
|
};
|
|
/* The MCUBoot swap-move algorithm uses the last 2 sectors
|
|
* of the primary slot0 for swap status and move.
|
|
*/
|
|
slot0_partition: partition@20000 {
|
|
label = "image-0";
|
|
reg = <0x00020000 (DT_SIZE_M(3) + DT_SIZE_K(8))>;
|
|
};
|
|
slot1_partition: partition@322000 {
|
|
label = "image-1";
|
|
reg = <0x00322000 DT_SIZE_M(3)>;
|
|
};
|
|
storage_partition: partition@622000 {
|
|
label = "storage";
|
|
reg = <0x00622000 (DT_SIZE_M(2) - DT_SIZE_K(136))>;
|
|
};
|
|
};
|
|
};
|
|
};
|