Skip to content

Commit 15744c2

Browse files
nordicjmkartben
authored andcommitted
dts/boards: nordic: nrf5340: Split partition into s and ns versions
Splits up partition configuration for nrf5340-based cpuapp board targets for secure and non-secure versions, the secure version now has an extra 16KiB per slot which was previously wrongly reserved for TF-M partitions which the secure board target does not use Signed-off-by: Jamie McCrae <[email protected]>
1 parent 6c1b1dc commit 15744c2

27 files changed

+194
-124
lines changed

boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpuapp.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@
2424
&uicr {
2525
nfct-pins-as-gpios;
2626
};
27+
28+
/* Include default memory partition configuration file */
29+
#include <nordic/nrf5340_cpuapp_partition.dtsi>

boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,4 @@ zephyr_udc0: &usbd {
263263
};
264264
};
265265

266-
/* Include default memory partition configuration file */
267-
#include <nordic/nrf5340_cpuapp_partition.dtsi>
268266
#include "nrf5340_audio_dk_nrf5340_shared.dtsi"

boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpuapp_ns.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
zephyr,code-partition = &slot0_ns_partition;
1919
};
2020
};
21+
22+
/* Include default memory partition configuration file */
23+
#include <nordic/nrf5340_cpuapp_ns_partition.dtsi>

boards/nordic/nrf5340dk/nrf5340_cpuapp_common.dtsi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,3 @@ zephyr_udc0: &usbd {
170170
compatible = "nordic,nrf-usbd";
171171
status = "okay";
172172
};
173-
174-
/* Include default memory partition configuration file */
175-
#include <nordic/nrf5340_cpuapp_partition.dtsi>

boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 Nordic Semiconductor ASA
2+
* Copyright (c) 2020-2025 Nordic Semiconductor ASA
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -31,3 +31,6 @@
3131
reg = <0x0 0x1>;
3232
};
3333
};
34+
35+
/* Include default memory partition configuration file */
36+
#include <nordic/nrf5340_cpuapp_partition.dtsi>

boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns.dts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 Nordic Semiconductor ASA
2+
* Copyright (c) 2020-2025 Nordic Semiconductor ASA
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -18,3 +18,6 @@
1818
zephyr,code-partition = &slot0_ns_partition;
1919
};
2020
};
21+
22+
/* Include default memory partition configuration file */
23+
#include <nordic/nrf5340_cpuapp_ns_partition.dtsi>

boards/nordic/nrf7002dk/nrf5340_cpuapp_common.dtsi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,3 @@ zephyr_udc0: &usbd {
245245
compatible = "nordic,nrf-usbd";
246246
status = "okay";
247247
};
248-
249-
/* Include default memory partition configuration file */
250-
#include <nordic/nrf5340_cpuapp_partition.dtsi>

boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@
3535
#include "nrf70_common_5g.dtsi"
3636
};
3737
};
38+
39+
/* Include default memory partition configuration file */
40+
#include <nordic/nrf5340_cpuapp_partition.dtsi>

boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_nrf7001.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@
3434
#include "nrf70_common.dtsi"
3535
};
3636
};
37+
38+
/* Include default memory partition configuration file */
39+
#include <nordic/nrf5340_cpuapp_partition.dtsi>

boards/nordic/thingy53/thingy53_nrf5340_common.dtsi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,3 @@ zephyr_udc0: &usbd {
325325
compatible = "nordic,nrf-usbd";
326326
status = "okay";
327327
};
328-
329-
/* Include default memory partition configuration file */
330-
#include <nordic/nrf5340_cpuapp_partition.dtsi>

0 commit comments

Comments
 (0)