Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
1be202b
[nrf fromtree] boards: holyiot: yj16019: Remove wrong include from dt…
nordicjm Feb 24, 2026
3e8b6c4
[nrf fromtree] dts: bindings: Add zephyr,mapped-partition binding
nordicjm Feb 23, 2026
1a03f22
[nrf fromtree] scripts: dts: gen_defines: Add support for zephyr,mapp…
nordicjm Feb 23, 2026
b5ee403
[nrf fromtree] scripts: dts: Add handling for `*-map` property
soburi Mar 23, 2025
82f1bc3
[nrf fromtree] drivers: wuc: introduce Wakeup Controller (WUC) driver…
Albort12138 Dec 16, 2025
f01767c
[nrf fromtree] storage: Add support for zephyr,mapped-partition
nordicjm Feb 23, 2026
c5e60ea
Revert "[nrf noup] tree-wide: support NCS Partition Manager (PM) defi…
nordicjm Mar 18, 2026
3feca78
[nrf fromtree] arch: arm: cortex_m: linker: Add support for zephyr,ma…
nordicjm Feb 23, 2026
291bd48
[nrf fromtree] tests: lib: devicetree: api: Add map property tests
soburi Apr 13, 2025
8156d36
Revert "[nrf fromlist] include: devicetree: fixed-partitions: Fix nod…
nordicjm Mar 18, 2026
b7910c2
Revert "[nrf fromlist] tests: drivers: flash: Fix invalid partition h…
nordicjm Mar 18, 2026
cb665a0
Revert "[nrf fromlist] tests: drivers: flash_simulator: Fix invalid p…
nordicjm Mar 18, 2026
e0722c6
Revert "[nrf fromlist] drivers: disk: flashdisk: Fix invalid partitio…
nordicjm Mar 18, 2026
e5c97d9
Revert "[nrf fromlist] tests: shell: shell_flash: Fix invalid partiti…
nordicjm Mar 18, 2026
2a5d7ac
Revert "[nrf fromlist] tests: storage: flash_map: Fix testing on sub-…
nordicjm Mar 18, 2026
7920ac7
[nrf fromtree] tests: lib: devicetree: api: Add zephyr,mapped-partiti…
nordicjm Feb 27, 2026
53673d2
[nrf fromtree] dfu: img_util: flash_img: Add support for zephyr,mappe…
nordicjm Feb 27, 2026
ef720e3
[nrf fromtree] mgmt: mcumgr: grp: img_mgmt: Add support for zephyr,ma…
nordicjm Feb 23, 2026
14d0c28
[nrf fromtree] secure_storage: add dependency for Settings backend
valeriosetti Oct 30, 2025
213e9c9
[nrf fromtree] secure_storage: kconfig: Add support for zephyr,mapped…
nordicjm Feb 24, 2026
02cdacb
[nrf fromtree] west.yml: MCUboot synchronization from upstream
nordicjm Jan 23, 2026
1204e87
[nrf fromtree] west.yml: MCUboot synchronization from upstream
nordicjm Jan 28, 2026
03d3b96
[nrf fromtree] west.yml: MCUboot synchronization from upstream
nordicjm Mar 6, 2026
42d159f
[nrf fromtree] dts: nordic: nrf52840dk: Update to use zephyr,mapped-p…
nordicjm Feb 23, 2026
943b57f
[nrf fromtree] dts: nordic: nrf5340: Update to use zephyr,mapped-part…
nordicjm Feb 26, 2026
7e52327
[nrf fromtree] dts: vendor: nordic: Rename nrf54l05 partition file
nordicjm Feb 26, 2026
24b4063
[nrf fromtree] dts: nordic: nrf54l15: Remove cpuflpr resource reserva…
nordicjm Feb 10, 2026
0dec263
[nrf noup] dts: vendor: nordic: nrf7120/nrf54l: Ranges revert
nordicjm Mar 18, 2026
32edf8d
[nrf fromtree] include: storage: flash_map: Remove ranges for fixed-p…
nordicjm Feb 27, 2026
f616c94
[nrf fromtree] soc: espressif: loader: use zephyr,code-partition for …
sylvioalves Jan 27, 2026
06996cc
[nrf fromtree] soc: espressif: use ZSR_CPU_STR macro for cpu pointer …
sylvioalves Feb 13, 2026
adaead7
Revert "[nrf noup] drivers/flashdisk: Add support for Partition Manager"
nordicjm Mar 18, 2026
d4539e4
[nrf fromtree] tests: secure_storage: psa: its: Use FIXED_PARTITION_MTD
nandojve Feb 7, 2026
24e0953
[nrf fromtree] drivers: flash: simulator: support multiple instances
tpambor Jan 29, 2026
2f250bd
[nrf fromtree] flash: simulator: PM support
JordanYates Feb 24, 2026
ed53a6f
[nrf fromtree] drivers: flash: simulator: fix buggy per-instance eras…
seyoungjeong Mar 6, 2026
15003df
[nrf fromtree] tests: drivers: flash: Update to support zephyr,mapped…
nordicjm Feb 26, 2026
7900707
[nrf fromtree] tests: drivers: flash_simulator: Support zephyr,mapped…
nordicjm Feb 26, 2026
4091083
[nrf fromtree] drivers: disk: flashdisk: Support zephyr,mapped-partit…
nordicjm Feb 26, 2026
3b931af
[nrf noup] tree: Replace FIXED_PARTITION_* macro usage with PARTITION_*
nordicjm Mar 3, 2026
929e51b
[nrf fromtree] kconfig: Change invalid flash code partition to fixed …
nordicjm Feb 26, 2026
e8a5bb7
[nrf noup] drivers/flashdisk: Add support for Partition Manager
de-nordic Jul 13, 2023
5194422
[nrf noup] tree-wide: support NCS Partition Manager (PM) definitions
sigvartmh May 3, 2019
fe5cfba
[nrf fromtree] include: arch: arm: cortex_m: linker: Fix non-XIP usage
nordicjm Mar 19, 2026
d38f43b
[nrf fromtree] arch: arm: cortex_a_r: linker: Add support for zephyr,…
nordicjm Mar 12, 2026
7499b4e
[nrf fromtree] arch: arm: arm64: linker: Add support for zephyr,mappe…
nordicjm Mar 12, 2026
30eaa0c
[nrf fromtree] arch: arm: riscv: linker: Add support for zephyr,mappe…
nordicjm Mar 12, 2026
1c7f892
[nrf fromtree] cmake: linker_script: arm: Add support for zephyr,mapp…
nordicjm Mar 6, 2026
8c6a2c7
[nrf fromtree] dts: nordic: nrf51: Update to use zephyr,mapped-partit…
nordicjm Feb 26, 2026
e22c719
[nrf fromtree] dts: nordic: nrf52: Update to use zephyr,mapped-partit…
nordicjm Feb 26, 2026
1268abd
[nrf fromtree] dts: nordic: nrf91: Update to use zephyr,mapped-partit…
nordicjm Feb 26, 2026
5b50176
[nrf fromtree] dts: nordic: nrf54lm20: Update to use zephyr,mapped-pa…
nordicjm Feb 26, 2026
a2d0161
[nrf fromtree] dts: nordic: nrf54l[05,10,15]: Update to use zephyr,ma…
nordicjm Feb 26, 2026
4586fc5
[nrf fromtree] tests: Adapt nRF52 board overlays to use new binding
nordicjm Mar 19, 2026
4573faa
[nrf fromtree] dts: nordic: nrf54h20/nrf9280: Update to use zephyr,ma…
nordicjm Mar 20, 2026
73fbb56
[nrf fromtree] dts: nordic: nrf7120: Update MRAM partitions
rob-robinson-14 Feb 25, 2026
aa637f8
[nrf fromtree] dts: nordic: nrf7120: Update to use zephyr,mapped-part…
nordicjm Mar 20, 2026
0165b1d
[nrf fromtree] include: devicetree: Add missing partition.h include
nordicjm Mar 18, 2026
63d26dd
[nrf fromlist] dts: vendor: nordic: Fix typo of dts name
nordicjm Mar 23, 2026
05bbfe7
[nrf fromlist] dts: bindings: mtd: fixed-(sub)partitions: Add missing…
nordicjm Mar 23, 2026
558acbd
[nrf fromlist] zephyr: arch: arm: cortex_m: linker: Add missing XIP c…
nordicjm Mar 23, 2026
d6c6c2b
[nrf fromlist] include: storage: flash_map: Fix PARTITION_NODE_OFFSET
nordicjm Mar 23, 2026
e94c43e
[nrf fromlist] dfu: img_util: Fix partition detection
nordicjm Mar 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -99,30 +99,37 @@ config USE_DT_CODE_PARTITION
# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
DT_CHOSEN_Z_FLASH := zephyr,flash
DT_COMPAT_Z_MAPPED_PARTITION := zephyr,mapped-partition

config FLASH_CODE_PARTITION_ADDRESS_INVALID
config FLASH_USES_MAPPED_PARTITION
bool
default y if XIP && $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) < FLASH_BASE_ADDRESS
default $(dt_node_has_compat,$(dt_chosen_path,$(DT_CHOSEN_Z_CODE_PARTITION)),$(DT_COMPAT_Z_MAPPED_PARTITION))
depends on USE_DT_CODE_PARTITION
help
Temporary Kconfig to indicate if underlying chosen chosen flash partition uses the
zephyr,mapped-partition compatible, this is to allow ease of migration from
fixed-partitions and should not be relied upon outside of the zephyr build system and
will be removed in future.

config FLASH_CODE_PARTITION_USING_FIXED_PARTITIONS
bool
default y if XIP && \
$(dt_chosen_has_compat,$(dt_node_parent,$(dt_chosen_path,$(DT_CHOSEN_Z_CODE_PARTITION))),fixed-partitions) || \
$(dt_chosen_has_compat,$(dt_node_parent,$(dt_chosen_path,$(DT_CHOSEN_Z_CODE_PARTITION))),fixed-subpartitions)
depends on USE_DT_CODE_PARTITION
select DEPRECATED
help
If this item is selected, it is likely selected because your board/SoC/base DTS files
are wrong and have a flash memory that does not start at absolute address 0x0 and:
* Do not have a ``ranges <>;`` property in the flash node passing down the address
and size to child nodes
* Do not have a ``ranges;`` property in the partitions node passing down the previous
ranges to child nodes
If this item is selected then it is because your device is using ``fixed-partitions`` or
``fixed-subpartitions`` for partition layout, this has been replaced with
``zephyr,mapped-partitions``.

Support for this will be removed and required that your files be updated correctly for
a future release, check the Zephyr 4.4 migration notes.

config FLASH_LOAD_OFFSET
# Only user-configurable when USE_DT_CODE_PARTITION is disabled
hex "Kernel load offset" if !USE_DT_CODE_PARTITION
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) \
if FLASH_CODE_PARTITION_ADDRESS_INVALID
default $(sub_hex, $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)), \
$(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))) if USE_DT_CODE_PARTITION
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) if USE_DT_CODE_PARTITION
default 0
help
This option specifies the byte offset from the beginning of flash that
Expand Down
13 changes: 4 additions & 9 deletions boards/ezurio/bl5340_dvk/bl5340_dvk_nrf5340_cpunet_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -31,36 +31,31 @@
};

&flash1 {
/*
* For more information, see:
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
ranges;

/* 48K */
boot_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "mcuboot";
reg = <0x00000000 0xc000>;
};

/* 88K */
slot0_partition: partition@c000 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x0000c000 0x16000>;
};

/* 88K */
slot1_partition: partition@22000 {
compatible = "zephyr,mapped-partition";
label = "image-1";
reg = <0x00022000 0x16000>;
};

/* 32K */
storage_partition: partition@38000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x00038000 0x8000>;
};
Expand Down
6 changes: 0 additions & 6 deletions boards/ezurio/bl54l15_dvk/bl54l15_dvk_nrf54l10_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,5 @@
};
};

/* FLPR not supported yet, give all SRAM and RRAM to the APP core */
&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(192)>;
ranges = <0x0 0x20000000 DT_SIZE_K(192)>;
};

/* Include default memory partition configuration file */
#include <vendor/nordic/nrf54l10_cpuapp_partition.dtsi>
11 changes: 2 additions & 9 deletions boards/ezurio/bl54l15_dvk/bl54l15_dvk_nrf54l15_cpuflpr.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/dts-v1/;
#include <nordic/nrf54l15_cpuflpr.dtsi>
#include <vendor/nordic/nrf54l15_cpuflpr.dtsi>
#include "bl54l15_dvk_common.dtsi"

/ {
Expand All @@ -22,21 +22,14 @@
};
};

&cpuflpr_sram {
status = "okay";
/* size must be increased due to booting from SRAM */
reg = <0x20028000 DT_SIZE_K(96)>;
ranges = <0x0 0x20028000 0x18000>;
};

&cpuflpr_rram {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
ranges;

cpuflpr_code_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x0 DT_SIZE_K(96)>;
};
Expand Down
11 changes: 2 additions & 9 deletions boards/ezurio/bl54l15u_dvk/bl54l15u_dvk_nrf54l15_cpuflpr.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/dts-v1/;
#include <nordic/nrf54l15_cpuflpr.dtsi>
#include <vendor/nordic/nrf54l15_cpuflpr.dtsi>
#include "bl54l15u_dvk_common.dtsi"

/ {
Expand All @@ -22,21 +22,14 @@
};
};

&cpuflpr_sram {
status = "okay";
/* size must be increased due to booting from SRAM */
reg = <0x20028000 DT_SIZE_K(96)>;
ranges = <0x0 0x20028000 0x18000>;
};

&cpuflpr_rram {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
ranges;

cpuflpr_code_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x0 DT_SIZE_K(96)>;
};
Expand Down
1 change: 0 additions & 1 deletion boards/holyiot/yj16019/holyiot_yj16019.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/dts-v1/;
#include <nordic/nrf52832_qfaa.dtsi>
#include <nordic/nrf52840_partition.dtsi>
#include "holyiot_yj16019-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>

Expand Down
4 changes: 3 additions & 1 deletion boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@

&flash0 {
reg = <0x00000000 DT_SIZE_K(1024)>;
ranges = <0x0 0x00000000 DT_SIZE_K(1024)>;

partitions {
compatible = "fixed-partitions";
ranges;
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x00000000 DT_SIZE_K(1024)>;
};
Expand Down
2 changes: 1 addition & 1 deletion boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.dts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
ranges = <0x0 0x01000000 DT_SIZE_K(256)>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
ranges;

storage_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x00000000 DT_SIZE_K(256)>;
};
Expand Down
6 changes: 5 additions & 1 deletion boards/nordic/nrf21540dk/nrf21540dk_nrf52840.dts
Original file line number Diff line number Diff line change
Expand Up @@ -273,21 +273,24 @@ fem_spi: &spi3 {

&flash0 {
partitions {
compatible = "fixed-partitions";
ranges;
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "mcuboot";
reg = <0x00000000 0x0000c000>;
};

slot0_partition: partition@c000 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x0000c000 0x00076000>;
};

slot1_partition: partition@82000 {
compatible = "zephyr,mapped-partition";
label = "image-1";
reg = <0x00082000 0x00076000>;
};
Expand All @@ -302,6 +305,7 @@ fem_spi: &spi3 {
* if enabled.
*/
storage_partition: partition@f8000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x000f8000 0x00008000>;
};
Expand Down
6 changes: 5 additions & 1 deletion boards/nordic/nrf51dk/nrf51dk_nrf51822.dts
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,30 @@

&flash0 {
partitions {
compatible = "fixed-partitions";
ranges;
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "mcuboot";
reg = <0x00000000 0x8000>;
};

slot0_partition: partition@8000 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x00008000 0x1b000>;
};

slot1_partition: partition@23000 {
compatible = "zephyr,mapped-partition";
label = "image-1";
reg = <0x00023000 0x1b000>;
};

storage_partition: partition@3e000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x0003e000 0x00002000>;
};
Expand Down
6 changes: 5 additions & 1 deletion boards/nordic/nrf51dongle/nrf51dongle_nrf51822.dts
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,30 @@

&flash0 {
partitions {
compatible = "fixed-partitions";
ranges;
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "mcuboot";
reg = <0x00000000 0x8000>;
};

slot0_partition: partition@8000 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x00008000 0x1b000>;
};

slot1_partition: partition@23000 {
compatible = "zephyr,mapped-partition";
label = "image-1";
reg = <0x00023000 0x1b000>;
};

storage_partition: partition@3e000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x0003e000 0x00002000>;
};
Expand Down
6 changes: 5 additions & 1 deletion boards/nordic/nrf52833dk/nrf52833dk_nrf52820.dts
Original file line number Diff line number Diff line change
Expand Up @@ -161,26 +161,30 @@

&flash0 {
partitions {
compatible = "fixed-partitions";
ranges;
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "mcuboot";
reg = <0x00000000 0xc000>;
};

slot0_partition: partition@c000 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x0000c000 0x17000>;
};

slot1_partition: partition@23000 {
compatible = "zephyr,mapped-partition";
label = "image-1";
reg = <0x00023000 0x17000>;
};

storage_partition: partition@3a000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x0003a000 0x00006000>;
};
Expand Down
6 changes: 5 additions & 1 deletion boards/nordic/nrf52833dk/nrf52833dk_nrf52833.dts
Original file line number Diff line number Diff line change
Expand Up @@ -231,26 +231,30 @@ arduino_spi: &spi3 {

&flash0 {
partitions {
compatible = "fixed-partitions";
ranges;
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "mcuboot";
reg = <0x00000000 0xc000>;
};

slot0_partition: partition@c000 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x0000c000 0x37000>;
};

slot1_partition: partition@43000 {
compatible = "zephyr,mapped-partition";
label = "image-1";
reg = <0x00043000 0x37000>;
};

storage_partition: partition@7a000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x0007a000 0x00006000>;
};
Expand Down
6 changes: 5 additions & 1 deletion boards/nordic/nrf52840dk/nrf52840dk_nrf52811.dts
Original file line number Diff line number Diff line change
Expand Up @@ -164,26 +164,30 @@

&flash0 {
partitions {
compatible = "fixed-partitions";
ranges;
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "mcuboot";
reg = <0x00000000 0xc000>;
};

slot0_partition: partition@c000 {
compatible = "zephyr,mapped-partition";
label = "image-0";
reg = <0x0000c000 0xe000>;
};

slot1_partition: partition@1a000 {
compatible = "zephyr,mapped-partition";
label = "image-1";
reg = <0x0001a000 0xe000>;
};

storage_partition: partition@28000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x00028000 0x00008000>;
};
Expand Down
Loading
Loading