|
| 1 | +/* |
| 2 | + * Copyright (c) 2026 Nordic Semiconductor ASA |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 5 | + * |
| 6 | + * Flash partition layout for nRF9151DK with NSIB (b0) + MCUBoot. |
| 7 | + * |
| 8 | + * 0x0000_0000 b0 (NSIB) ( 32 kB) |
| 9 | + * 0x0000_8000 s0 (MCUBoot image, slot 0) ( 48 kB) |
| 10 | + * 0x0001_4000 s1 (MCUBoot image, slot 1) ( 48 kB) |
| 11 | + * 0x0002_0000 slot0 (primary app) (428 kB) |
| 12 | + * 0x0002_0000 TF-M secure (160 kB) |
| 13 | + * 0x0004_8000 Application (non-secure) (268 kB - (MCUBoot swap sector + MCUboot trailer)) |
| 14 | + * 0x0008_b000 slot1 (secondary app) (424 kB) |
| 15 | + * 0x000f_5000 Non-secure storage ( 12 kB) |
| 16 | + * 0x000f_8000 TF-M ITS partition ( 8 kB) |
| 17 | + * 0x000f_c000 TF-M PS partition ( 16 kB) |
| 18 | + * 0x000f_e000 TF-M OTP partition ( 8 kB) |
| 19 | + */ |
| 20 | + |
| 21 | +/delete-node/ &b0_partition; |
| 22 | +/delete-node/ &s0_partition; |
| 23 | +/delete-node/ &s1_partition; |
| 24 | +/delete-node/ &slot0_partition; |
| 25 | +/delete-node/ &slot1_partition; |
| 26 | +/delete-node/ &storage_partition; |
| 27 | + |
| 28 | +&flash0 { |
| 29 | + partitions { |
| 30 | + compatible = "fixed-partitions"; |
| 31 | + |
| 32 | + b0_partition: partition@0 { |
| 33 | + label = "b0"; |
| 34 | + reg = <0x0 0x8000>; |
| 35 | + }; |
| 36 | + |
| 37 | + s0_partition: boot_partition: partition@8000 { |
| 38 | + label = "mcuboot-0"; |
| 39 | + reg = <0x8000 0xc000>; |
| 40 | + }; |
| 41 | + |
| 42 | + s1_partition: partition@14000 { |
| 43 | + label = "mcuboot-1"; |
| 44 | + reg = <0x14000 0xc000>; |
| 45 | + }; |
| 46 | + |
| 47 | + slot0_partition: partition@20000 { |
| 48 | + compatible = "fixed-subpartitions"; |
| 49 | + label = "image-0"; |
| 50 | + reg = <0x20000 0x6b000>; |
| 51 | + ranges = <0x0 0x20000 0x6b000>; |
| 52 | + #address-cells = <1>; |
| 53 | + #size-cells = <1>; |
| 54 | + |
| 55 | + slot0_s_partition: partition@0 { |
| 56 | + label = "image-0-secure"; |
| 57 | + reg = <0x0 0x28000>; |
| 58 | + }; |
| 59 | + |
| 60 | + slot0_ns_partition: partition@28000 { |
| 61 | + label = "image-0-nonsecure"; |
| 62 | + reg = <0x28000 0x43000>; |
| 63 | + }; |
| 64 | + }; |
| 65 | + |
| 66 | + slot1_partition: partition@8b000 { |
| 67 | + compatible = "fixed-subpartitions"; |
| 68 | + label = "image-1"; |
| 69 | + reg = <0x8b000 0x6a000>; |
| 70 | + ranges = <0x0 0x8b000 0x6a000>; |
| 71 | + #address-cells = <1>; |
| 72 | + #size-cells = <1>; |
| 73 | + |
| 74 | + slot1_s_partition: partition@0 { |
| 75 | + label = "image-1-secure"; |
| 76 | + reg = <0x0 0x28000>; |
| 77 | + }; |
| 78 | + |
| 79 | + slot1_ns_partition: partition@28000 { |
| 80 | + label = "image-1-nonsecure"; |
| 81 | + reg = <0x28000 0x42000>; |
| 82 | + }; |
| 83 | + }; |
| 84 | + |
| 85 | + nonsecure_storage: storage_partition: partition@f5000 { |
| 86 | + label = "nonsecure-storage"; |
| 87 | + reg = <0xf5000 0x3000>; |
| 88 | + }; |
| 89 | + |
| 90 | + tfm_its_partition: partition@f8000 { |
| 91 | + compatible = "zephyr,mapped-partition"; |
| 92 | + label = "tfm-its"; |
| 93 | + reg = <0xf8000 0x2000>; |
| 94 | + }; |
| 95 | + |
| 96 | + tfm_ps_partition: partition@fa000 { |
| 97 | + compatible = "zephyr,mapped-partition"; |
| 98 | + label = "tfm-ps"; |
| 99 | + reg = <0xfa000 0x4000>; |
| 100 | + }; |
| 101 | + |
| 102 | + tfm_otp_partition: partition@fe000 { |
| 103 | + compatible = "zephyr,mapped-partition"; |
| 104 | + label = "tfm-otp"; |
| 105 | + reg = <0xfe000 0x2000>; |
| 106 | + }; |
| 107 | + }; |
| 108 | +}; |
0 commit comments