Skip to content

Commit

Permalink
[nrf noup] boot/zephyr: add nrf54l15dk ext flash configs
Browse files Browse the repository at this point in the history
Copied configs from nrf54l15pdk.

Signed-off-by: Andrzej Puzdrowski <[email protected]>
  • Loading branch information
nvlsianpu authored and michalek-no committed Nov 7, 2024
1 parent 99fee89 commit 0bc966c
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boot/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ config BOOT_SIGNATURE_TYPE_PURE_ALLOW

choice BOOT_SIGNATURE_TYPE
prompt "Signature type"
default BOOT_SIGNATURE_TYPE_ED25519 if BOARD_NRF54L15PDK_NRF54L15_CPUAPP
default BOOT_SIGNATURE_TYPE_ED25519 if SOC_NRF54L15_CPUAPP
default BOOT_SIGNATURE_TYPE_RSA

config BOOT_SIGNATURE_TYPE_NONE
Expand Down
15 changes: 15 additions & 0 deletions boot/zephyr/boards/nrf54l15dk_nrf54l15_cpuapp_ext_flash.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CONFIG_MULTITHREADING=y
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_FLASH=y
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x14000
CONFIG_MAIN_STACK_SIZE=20480
CONFIG_BOOT_MAX_IMG_SECTORS=512
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
# Ensure that the qspi driver is disabled by default
CONFIG_NORDIC_QSPI_NOR=n

# TODO: below are not yet supported and need fixing
CONFIG_FPROTECT=n

CONFIG_BOOT_WATCHDOG_FEED=n
47 changes: 47 additions & 0 deletions boot/zephyr/boards/nrf54l15dk_nrf54l15_cpuapp_ext_flash.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/ {
chosen {
nordic,pm-ext-flash = &mx25r64;
zephyr,code-partition = &boot_partition;
};
};

/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;

/delete-node/ &slot0_ns_partition;
/delete-node/ &slot1_ns_partition;

/delete-node/ &storage_partition;

&cpuapp_rram {
reg = < 0x0 DT_SIZE_K(1524) >;
partitions {
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x000000000 0x00014000>;
};
slot0_partition: partition@14000 {
label = "image-0";
reg = <0x000014000 0x0015A000>;
};
storage_partition: partition@16E000 {
label = "storage";
reg = < 0x16E000 0x9000 >;
};
};
};

&mx25r64 {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

slot1_partition: partition@0 {
label = "image-1";
reg = <0x000000000 0x0015A000>;
};
};
};

0 comments on commit 0bc966c

Please sign in to comment.