1/*
2 * Copyright (c) 2024 Jacob Winther
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/ {
8	chosen {
9		zephyr,sram = &sram0;
10		zephyr,flash = &flash0;
11		zephyr,code-partition = &slot0_partition;
12	};
13};
14
15&flash0 {
16	partitions {
17		compatible = "fixed-partitions";
18		#address-cells = <1>;
19		#size-cells = <1>;
20
21		boot_partition: partition@0 {
22			label = "mcuboot";
23			reg = <0x00000000 0x0000C000>;
24		};
25		slot0_partition: partition@c000 {
26			label = "image-0";
27			reg = <0x0000C000 0x00077000>;
28		};
29		slot1_partition: partition@83000 {
30			label = "image-1";
31			reg = <0x00083000 0x00075000>;
32		};
33
34		/*
35		 * The flash starting at 0x000f8000 and ending at
36		 * 0x000fffff is reserved for use by the application.
37		 */
38
39		/*
40		 * Storage partition will be used by FCB/LittleFS/NVS
41		 * if enabled.
42		 */
43		storage_partition: partition@f8000 {
44			label = "storage";
45			reg = <0x000f8000 0x00008000>;
46		};
47	};
48};
49