You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
74 lines
1.6 KiB
/* |
|
* Copyright 2024 NXP |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
#include "mimxrt1050_evk.dtsi" |
|
|
|
/ { |
|
chosen { |
|
zephyr,flash-controller = &s26ks512s0; |
|
zephyr,flash = &s26ks512s0; |
|
zephyr,code-partition = &slot0_partition; |
|
}; |
|
}; |
|
|
|
&flexspi { |
|
status = "okay"; |
|
ahb-prefetch; |
|
ahb-read-addr-opt; |
|
pinctrl-0 = <&pinmux_flexspi1>; |
|
pinctrl-names = "default"; |
|
ahb-bufferable; |
|
ahb-cacheable; |
|
sck-differential-clock; |
|
combination-mode; |
|
rx-clock-source = <3>; |
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(64)>; |
|
s26ks512s0: s26ks512s@0 { |
|
compatible = "nxp,imx-flexspi-hyperflash"; |
|
size = <DT_SIZE_M(64*8)>; |
|
reg = <0>; |
|
spi-max-frequency = <166000000>; |
|
word-addressable; |
|
cs-interval-unit = <1>; |
|
cs-interval = <2>; |
|
cs-hold-time = <3>; |
|
cs-setup-time = <3>; |
|
data-valid-time = <1>; |
|
column-space = <3>; |
|
ahb-write-wait-unit = <2>; |
|
ahb-write-wait-interval = <20>; |
|
status = "okay"; |
|
erase-block-size = <DT_SIZE_K(256)>; |
|
write-block-size = <16>; |
|
|
|
partitions { |
|
compatible = "fixed-partitions"; |
|
#address-cells = <1>; |
|
#size-cells = <1>; |
|
|
|
/* |
|
* Partition sizes must be aligned |
|
* to the flash memory sector size of 256KB. |
|
*/ |
|
boot_partition: partition@0 { |
|
label = "mcuboot"; |
|
reg = <0x00000000 DT_SIZE_K(256)>; |
|
}; |
|
slot0_partition: partition@40000 { |
|
label = "image-0"; |
|
reg = <0x00040000 DT_SIZE_M(3)>; |
|
}; |
|
slot1_partition: partition@340000 { |
|
label = "image-1"; |
|
reg = <0x00340000 DT_SIZE_M(3)>; |
|
}; |
|
storage_partition: partition@640000 { |
|
label = "storage"; |
|
reg = <0x00640000 (DT_SIZE_M(58) - DT_SIZE_K(256))>; |
|
}; |
|
}; |
|
}; |
|
};
|
|
|