zephyr/boards: Add nrf5340dk board configuration.

Add support for the nrf5340dk.  This DK has a MX25R64 8mb external QSPI
flash chip.

Compile using:

    $ west build -b nrf5340dk/nrf5340/cpuapp

Signed-off-by: Patrick Joy <patrick@thinktransit.com.au>
This commit is contained in:
Patrick Joy
2025-03-08 22:11:35 +11:00
committed by Damien George
parent d939511dae
commit e3d9d8ef51
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y

View File

@@ -0,0 +1,16 @@
// Replace default internal storage partition with external flash
/delete-node/ &storage_partition;
&mx25r64 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@0 {
reg = <0x00000000 0x800000>;
label = "storage";
};
};
};