Skip to content

Commit 320e654

Browse files
nordicjmkartben
authored andcommitted
dts: common: nordic: nrf5340: Use sub-paritions for TF-M areas
Uses sub-partitions to allow having a dedicated secure and non-secure partition area in flash partitions, which also allows the main application slot to be extended when TF-M is not in use Signed-off-by: Jamie McCrae <[email protected]>
1 parent 51cf415 commit 320e654

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,41 @@
3535
};
3636

3737
slot0_partition: partition@10000 {
38+
compatible = "fixed-subpartitions";
3839
label = "image-0";
39-
reg = <0x00010000 0x40000>;
40-
};
41-
42-
slot0_ns_partition: partition@50000 {
43-
label = "image-0-nonsecure";
44-
reg = <0x00050000 0x30000>;
40+
reg = <0x00010000 0x70000>;
41+
ranges = <0x0 0x10000 0x70000>;
42+
#address-cells = <1>;
43+
#size-cells = <1>;
44+
45+
slot0_s_partition: partition@0 {
46+
label = "image-0-secure";
47+
reg = <0x00000000 0x40000>;
48+
};
49+
50+
slot0_ns_partition: partition@40000 {
51+
label = "image-0-nonsecure";
52+
reg = <0x00040000 0x30000>;
53+
};
4554
};
4655

4756
slot1_partition: partition@80000 {
57+
compatible = "fixed-subpartitions";
4858
label = "image-1";
49-
reg = <0x00080000 0x40000>;
50-
};
51-
52-
slot1_ns_partition: partition@c0000 {
53-
label = "image-1-nonsecure";
54-
reg = <0x000c0000 0x30000>;
59+
reg = <0x00080000 0x70000>;
60+
ranges = <0x0 0x80000 0x70000>;
61+
#address-cells = <1>;
62+
#size-cells = <1>;
63+
64+
slot1_s_partition: partition@0 {
65+
label = "image-1-secure";
66+
reg = <0x00000000 0x40000>;
67+
};
68+
69+
slot1_ns_partition: partition@40000 {
70+
label = "image-1-nonsecure";
71+
reg = <0x00040000 0x30000>;
72+
};
5573
};
5674

5775
tfm_ps_partition: partition@f0000 {

0 commit comments

Comments
 (0)