1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/* Flash partition table compatible with Nordic nRF5 bootloader */
8
9&flash0 {
10	partitions {
11		compatible = "fixed-partitions";
12		#address-cells = <1>;
13		#size-cells = <1>;
14
15		/* MCUboot placed after Nordic MBR.
16		 * The size of this partition ensures that MCUBoot
17		 * can be built with CDC ACM support and w/o optimizations.
18		 */
19		boot_partition: partition@1000 {
20			label = "mcuboot";
21			reg = <0x00001000 0x0000f000>;
22		};
23
24		slot0_partition: partition@10000 {
25			label = "image-0";
26			reg = <0x00010000 0x0005e000>;
27		};
28		slot1_partition: partition@6e000 {
29			label = "image-1";
30			reg = <0x0006e000 0x0005e000>;
31		};
32		storage_partition: partition@cc000 {
33			label = "storage";
34			reg = <0x000cc000 0x00004000>;
35		};
36		scratch_partition: partition@d0000 {
37			label = "image-scratch";
38			reg = <0x000d0000 0x00010000>;
39		};
40
41		/* Nordic nRF5 bootloader <0xe0000 0x1c000>
42		 *
43		 * In addition, the last and second last flash pages
44		 * are used by the nRF5 bootloader and MBR to store settings.
45		 */
46	};
47};
48