summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Joy <patrick@joytech.com.au>2025-03-08 22:11:35 +1100
committerDamien George <damien@micropython.org>2025-04-30 12:29:11 +1000
commite3d9d8ef51d3668ce51ab3cd7e610109a8f9db98 (patch)
tree49eff39fabdf5d7b224ea171153a24c58edcfae2
parentd939511dae6b29c0d65a066a5eafafdcb4a5524b (diff)
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>
-rw-r--r--ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.conf2
-rw-r--r--ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.overlay16
2 files changed, 18 insertions, 0 deletions
diff --git a/ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.conf b/ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.conf
new file mode 100644
index 000000000..b4aed364a
--- /dev/null
+++ b/ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.conf
@@ -0,0 +1,2 @@
+CONFIG_FLASH=y
+CONFIG_FLASH_MAP=y
diff --git a/ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.overlay b/ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.overlay
new file mode 100644
index 000000000..7310d1e55
--- /dev/null
+++ b/ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.overlay
@@ -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";
+ };
+ };
+};