Skip to content

Commit e542188

Browse files
nordicjmhenrikbrixandersen
authored andcommitted
boards: nordic: nrf54l15_ns: Change to use common dts partitioning file
Adds a common vendor dts file specifying the default partition layout for nRF54L15-based cpuapp_ns board targets and updates boards to use this common file. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent 124a803 commit e542188

File tree

6 files changed

+77
-225
lines changed

6 files changed

+77
-225
lines changed

boards/ezurio/bl54l15_dvk/bl54l15_dvk_nrf54l15_cpuapp_ns.dts

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -58,51 +58,6 @@
5858
};
5959
};
6060

61-
&cpuapp_rram {
62-
partitions {
63-
compatible = "fixed-partitions";
64-
#address-cells = <1>;
65-
#size-cells = <1>;
66-
67-
/* nRF54L15 has 1524 kB of non volatile memory (RRAM) but the
68-
* last 96kB are reserved for the FLPR MCU.
69-
*
70-
* This static layout needs to be the same with the upstream TF-M layout in the
71-
* header flash_layout.h of the relevant platform. Any updates in the layout
72-
* needs to happen both in the flash_layout.h and in this file at the same time.
73-
*/
74-
slot0_partition: partition@0 {
75-
label = "image-0";
76-
reg = <0x0000000 DT_SIZE_K(512)>;
77-
};
78-
79-
tfm_ps_partition: partition@80000 {
80-
label = "tfm-ps";
81-
reg = <0x00080000 DT_SIZE_K(16)>;
82-
};
83-
84-
tfm_its_partition: partition@84000 {
85-
label = "tfm-its";
86-
reg = <0x00084000 DT_SIZE_K(16)>;
87-
};
88-
89-
tfm_otp_partition: partition@88000 {
90-
label = "tfm-otp";
91-
reg = <0x00088000 DT_SIZE_K(8)>;
92-
};
93-
94-
slot0_ns_partition: partition@8A000 {
95-
label = "image-0-nonsecure";
96-
reg = <0x0008A000 DT_SIZE_K(844)>;
97-
};
98-
99-
storage_partition: partition@15D000 {
100-
label = "storage";
101-
reg = <0x00015D000 DT_SIZE_K(32)>;
102-
};
103-
};
104-
};
105-
10661
&uart30 {
10762
/* Disable so that TF-M can use this UART */
10863
status = "disabled";
@@ -112,3 +67,6 @@
11267
pinctrl-1 = <&uart30_sleep>;
11368
pinctrl-names = "default", "sleep";
11469
};
70+
71+
/* Include default memory partition configuration file */
72+
#include <nordic/nrf54l15_ns_partition.dtsi>

boards/ezurio/bl54l15u_dvk/bl54l15u_dvk_nrf54l15_cpuapp_ns.dts

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -58,51 +58,6 @@
5858
};
5959
};
6060

61-
&cpuapp_rram {
62-
partitions {
63-
compatible = "fixed-partitions";
64-
#address-cells = <1>;
65-
#size-cells = <1>;
66-
67-
/* nRF54L15 has 1524 kB of non volatile memory (RRAM) but the
68-
* last 96kB are reserved for the FLPR MCU.
69-
*
70-
* This static layout needs to be the same with the upstream TF-M layout in the
71-
* header flash_layout.h of the relevant platform. Any updates in the layout
72-
* needs to happen both in the flash_layout.h and in this file at the same time.
73-
*/
74-
slot0_partition: partition@0 {
75-
label = "image-0";
76-
reg = <0x0000000 DT_SIZE_K(512)>;
77-
};
78-
79-
tfm_ps_partition: partition@80000 {
80-
label = "tfm-ps";
81-
reg = <0x00080000 DT_SIZE_K(16)>;
82-
};
83-
84-
tfm_its_partition: partition@84000 {
85-
label = "tfm-its";
86-
reg = <0x00084000 DT_SIZE_K(16)>;
87-
};
88-
89-
tfm_otp_partition: partition@88000 {
90-
label = "tfm-otp";
91-
reg = <0x00088000 DT_SIZE_K(8)>;
92-
};
93-
94-
slot0_ns_partition: partition@8A000 {
95-
label = "image-0-nonsecure";
96-
reg = <0x0008A000 DT_SIZE_K(844)>;
97-
};
98-
99-
storage_partition: partition@15D000 {
100-
label = "storage";
101-
reg = <0x00015D000 DT_SIZE_K(32)>;
102-
};
103-
};
104-
};
105-
10661
&uart30 {
10762
/* Disable so that TF-M can use this UART */
10863
status = "disabled";
@@ -112,3 +67,6 @@
11267
pinctrl-1 = <&uart30_sleep>;
11368
pinctrl-names = "default", "sleep";
11469
};
70+
71+
/* Include default memory partition configuration file */
72+
#include <nordic/nrf54l15_ns_partition.dtsi>

boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_ns.dts

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -57,51 +57,6 @@
5757
};
5858
};
5959

60-
&cpuapp_rram {
61-
partitions {
62-
compatible = "fixed-partitions";
63-
#address-cells = <1>;
64-
#size-cells = <1>;
65-
66-
/* nRF54L15 has 1524 kB of non volatile memory (RRAM) but the
67-
* last 96kB are reserved for the FLPR MCU.
68-
*
69-
* This static layout needs to be the same with the upstream TF-M layout in the
70-
* header flash_layout.h of the relevant platform. Any updates in the layout
71-
* needs to happen both in the flash_layout.h and in this file at the same time.
72-
*/
73-
slot0_partition: partition@0 {
74-
label = "image-0";
75-
reg = <0x0000000 DT_SIZE_K(512)>;
76-
};
77-
78-
tfm_ps_partition: partition@80000 {
79-
label = "tfm-ps";
80-
reg = <0x00080000 DT_SIZE_K(16)>;
81-
};
82-
83-
tfm_its_partition: partition@84000 {
84-
label = "tfm-its";
85-
reg = <0x00084000 DT_SIZE_K(16)>;
86-
};
87-
88-
tfm_otp_partition: partition@88000 {
89-
label = "tfm-otp";
90-
reg = <0x00088000 DT_SIZE_K(8)>;
91-
};
92-
93-
slot0_ns_partition: partition@8A000 {
94-
label = "image-0-nonsecure";
95-
reg = <0x0008A000 DT_SIZE_K(844)>;
96-
};
97-
98-
storage_partition: partition@15D000 {
99-
label = "storage";
100-
reg = <0x00015D000 DT_SIZE_K(32)>;
101-
};
102-
};
103-
};
104-
10560
&uart30 {
10661
/* Disable so that TF-M can use this UART */
10762
status = "disabled";
@@ -111,3 +66,6 @@
11166
pinctrl-1 = <&uart30_sleep>;
11267
pinctrl-names = "default", "sleep";
11368
};
69+
70+
/* Include default memory partition configuration file */
71+
#include <nordic/nrf54l15_ns_partition.dtsi>

boards/panasonic/panb511evb/panb511evb_nrf54l15_cpuapp_ns.dts

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -57,51 +57,6 @@
5757
};
5858
};
5959

60-
&cpuapp_rram {
61-
partitions {
62-
compatible = "fixed-partitions";
63-
#address-cells = <1>;
64-
#size-cells = <1>;
65-
66-
/* nRF54L15 has 1524 kB of non volatile memory (RRAM) but the
67-
* last 96kB are reserved for the FLPR MCU.
68-
*
69-
* This static layout needs to be the same with the upstream TF-M layout in the
70-
* header flash_layout.h of the relevant platform. Any updates in the layout
71-
* needs to happen both in the flash_layout.h and in this file at the same time.
72-
*/
73-
slot0_partition: partition@0 {
74-
label = "image-0";
75-
reg = <0x0000000 DT_SIZE_K(512)>;
76-
};
77-
78-
tfm_ps_partition: partition@80000 {
79-
label = "tfm-ps";
80-
reg = <0x00080000 DT_SIZE_K(16)>;
81-
};
82-
83-
tfm_its_partition: partition@84000 {
84-
label = "tfm-its";
85-
reg = <0x00084000 DT_SIZE_K(16)>;
86-
};
87-
88-
tfm_otp_partition: partition@88000 {
89-
label = "tfm-otp";
90-
reg = <0x00088000 DT_SIZE_K(8)>;
91-
};
92-
93-
slot0_ns_partition: partition@8A000 {
94-
label = "image-0-nonsecure";
95-
reg = <0x0008A000 DT_SIZE_K(844)>;
96-
};
97-
98-
storage_partition: partition@15D000 {
99-
label = "storage";
100-
reg = <0x00015D000 DT_SIZE_K(32)>;
101-
};
102-
};
103-
};
104-
10560
&uart20 {
10661
/* Disable so that TF-M can use this UART */
10762
status = "disabled";
@@ -111,3 +66,6 @@
11166
pinctrl-1 = <&uart20_sleep>;
11267
pinctrl-names = "default", "sleep";
11368
};
69+
70+
/* Include default memory partition configuration file */
71+
#include <nordic/nrf54l15_ns_partition.dtsi>

boards/raytac/an54l15q_db/raytac_an54l15q_db_nrf54l15_cpuapp_ns.dts

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -58,51 +58,6 @@
5858
};
5959
};
6060

61-
&cpuapp_rram {
62-
partitions {
63-
compatible = "fixed-partitions";
64-
#address-cells = <1>;
65-
#size-cells = <1>;
66-
67-
/* nRF54L15 has 1524 kB of non volatile memory (RRAM) but the
68-
* last 96kB are reserved for the FLPR MCU.
69-
*
70-
* This static layout needs to be the same with the upstream TF-M layout in the
71-
* header flash_layout.h of the relevant platform. Any updates in the layout
72-
* needs to happen both in the flash_layout.h and in this file at the same time.
73-
*/
74-
slot0_partition: partition@0 {
75-
label = "image-0";
76-
reg = <0x0000000 DT_SIZE_K(512)>;
77-
};
78-
79-
tfm_ps_partition: partition@80000 {
80-
label = "tfm-ps";
81-
reg = <0x00080000 DT_SIZE_K(16)>;
82-
};
83-
84-
tfm_its_partition: partition@84000 {
85-
label = "tfm-its";
86-
reg = <0x00084000 DT_SIZE_K(16)>;
87-
};
88-
89-
tfm_otp_partition: partition@88000 {
90-
label = "tfm-otp";
91-
reg = <0x00088000 DT_SIZE_K(8)>;
92-
};
93-
94-
slot0_ns_partition: partition@8A000 {
95-
label = "image-0-nonsecure";
96-
reg = <0x0008A000 DT_SIZE_K(844)>;
97-
};
98-
99-
storage_partition: partition@15D000 {
100-
label = "storage";
101-
reg = <0x00015D000 DT_SIZE_K(32)>;
102-
};
103-
};
104-
};
105-
10661
&uart30 {
10762
/* Disable so that TF-M can use this UART */
10863
status = "disabled";
@@ -111,3 +66,6 @@
11166
pinctrl-1 = <&uart30_sleep>;
11267
pinctrl-names = "default", "sleep";
11368
};
69+
70+
/* Include default memory partition configuration file */
71+
#include <nordic/nrf54l15_ns_partition.dtsi>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&cpuapp_rram {
8+
/*
9+
* Default NVM layout on NRF54L15 Application MCU without BL2:
10+
* This layout matches (by necessity) that in the TF-M repository:
11+
*
12+
* 0x0000_0000 Secure image primary (512 KB)
13+
* 0x0008_0000 Protected Storage Area (16 KB)
14+
* 0x0008_4000 Internal Trusted Storage Area (16 KB)
15+
* 0x0008_8000 OTP / NV counters area (8 KB)
16+
* 0x0008_A000 Non-secure image primary (844 KB)
17+
* 0x0015_D000 Non-secure storage, used when built with NRF_NS_STORAGE=ON,
18+
* otherwise unused (32 KB)
19+
*/
20+
partitions {
21+
compatible = "fixed-partitions";
22+
#address-cells = <1>;
23+
#size-cells = <1>;
24+
25+
/* nRF54L15 has 1524 kB of non volatile memory (RRAM) but the
26+
* last 96kB are reserved for the FLPR MCU.
27+
*
28+
* This static layout needs to be the same with the upstream TF-M layout in the
29+
* header flash_layout.h of the relevant platform. Any updates in the layout
30+
* needs to happen both in the flash_layout.h and in this file at the same time.
31+
*/
32+
slot0_partition: partition@0 {
33+
label = "image-0";
34+
reg = <0x0000000 DT_SIZE_K(512)>;
35+
};
36+
37+
tfm_ps_partition: partition@80000 {
38+
label = "tfm-ps";
39+
reg = <0x00080000 DT_SIZE_K(16)>;
40+
};
41+
42+
tfm_its_partition: partition@84000 {
43+
label = "tfm-its";
44+
reg = <0x00084000 DT_SIZE_K(16)>;
45+
};
46+
47+
tfm_otp_partition: partition@88000 {
48+
label = "tfm-otp";
49+
reg = <0x00088000 DT_SIZE_K(8)>;
50+
};
51+
52+
slot0_ns_partition: partition@8A000 {
53+
label = "image-0-nonsecure";
54+
reg = <0x0008A000 DT_SIZE_K(844)>;
55+
};
56+
57+
storage_partition: partition@15D000 {
58+
label = "storage";
59+
reg = <0x00015D000 DT_SIZE_K(32)>;
60+
};
61+
};
62+
};

0 commit comments

Comments
 (0)