Skip to content

Commit 0bc966c

Browse files
nvlsianpumichalek-no
authored andcommitted
[nrf noup] boot/zephyr: add nrf54l15dk ext flash configs
Copied configs from nrf54l15pdk. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent 99fee89 commit 0bc966c

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed

boot/zephyr/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ config BOOT_SIGNATURE_TYPE_PURE_ALLOW
202202

203203
choice BOOT_SIGNATURE_TYPE
204204
prompt "Signature type"
205-
default BOOT_SIGNATURE_TYPE_ED25519 if BOARD_NRF54L15PDK_NRF54L15_CPUAPP
205+
default BOOT_SIGNATURE_TYPE_ED25519 if SOC_NRF54L15_CPUAPP
206206
default BOOT_SIGNATURE_TYPE_RSA
207207

208208
config BOOT_SIGNATURE_TYPE_NONE
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CONFIG_MULTITHREADING=y
2+
CONFIG_SPI=y
3+
CONFIG_SPI_NOR=y
4+
CONFIG_FLASH=y
5+
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x14000
6+
CONFIG_MAIN_STACK_SIZE=20480
7+
CONFIG_BOOT_MAX_IMG_SECTORS=512
8+
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
9+
# Ensure that the qspi driver is disabled by default
10+
CONFIG_NORDIC_QSPI_NOR=n
11+
12+
# TODO: below are not yet supported and need fixing
13+
CONFIG_FPROTECT=n
14+
15+
CONFIG_BOOT_WATCHDOG_FEED=n
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/ {
2+
chosen {
3+
nordic,pm-ext-flash = &mx25r64;
4+
zephyr,code-partition = &boot_partition;
5+
};
6+
};
7+
8+
/delete-node/ &boot_partition;
9+
/delete-node/ &slot0_partition;
10+
/delete-node/ &slot1_partition;
11+
12+
/delete-node/ &slot0_ns_partition;
13+
/delete-node/ &slot1_ns_partition;
14+
15+
/delete-node/ &storage_partition;
16+
17+
&cpuapp_rram {
18+
reg = < 0x0 DT_SIZE_K(1524) >;
19+
partitions {
20+
boot_partition: partition@0 {
21+
label = "mcuboot";
22+
reg = <0x000000000 0x00014000>;
23+
};
24+
slot0_partition: partition@14000 {
25+
label = "image-0";
26+
reg = <0x000014000 0x0015A000>;
27+
};
28+
storage_partition: partition@16E000 {
29+
label = "storage";
30+
reg = < 0x16E000 0x9000 >;
31+
};
32+
};
33+
};
34+
35+
&mx25r64 {
36+
status = "okay";
37+
partitions {
38+
compatible = "fixed-partitions";
39+
#address-cells = <1>;
40+
#size-cells = <1>;
41+
42+
slot1_partition: partition@0 {
43+
label = "image-1";
44+
reg = <0x000000000 0x0015A000>;
45+
};
46+
};
47+
};

0 commit comments

Comments
 (0)