boards: imxrt1050_evk_qspi: added nor config to dts
This fixes the build issue with chosen zephyr,flash missing. Signed-off-by: Nicolai Glud <nicolai.glud@prevas.dk>
This commit is contained in:
parent
b3e5076e59
commit
28a4bb0763
1 changed files with 36 additions and 3 deletions
|
@ -10,13 +10,17 @@
|
|||
|
||||
/ {
|
||||
chosen {
|
||||
/delete-property/ zephyr,flash-controller;
|
||||
/delete-property/ zephyr,flash;
|
||||
/delete-property/ zephyr,code-partition;
|
||||
zephyr,flash-controller = &flexspi;
|
||||
zephyr,flash = &is25wp064;
|
||||
zephyr,code-partition = &slot0_partition;
|
||||
};
|
||||
};
|
||||
|
||||
&flexspi {
|
||||
status = "okay";
|
||||
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";
|
||||
|
@ -26,5 +30,34 @@
|
|||
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(64)>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x00010000 DT_SIZE_M(3)>;
|
||||
};
|
||||
slot1_partition: partition@310000 {
|
||||
label = "image-1";
|
||||
reg = <0x00310000 DT_SIZE_M(3)>;
|
||||
};
|
||||
scratch_partition: partition@610000 {
|
||||
label = "image-scratch";
|
||||
reg = <0x00610000 DT_SIZE_K(128)>;
|
||||
};
|
||||
storage_partition: partition@630000 {
|
||||
label = "storage";
|
||||
reg = <0x00630000 DT_SIZE_K(1856)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue