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
26		slot0_partition: partition@c000 {
27			label = "image-0";
28			reg = <0x0000C000 0x00077000>;
29		};
30
31		slot1_partition: partition@83000 {
32			label = "image-1";
33			reg = <0x00083000 0x00075000>;
34		};
35
36		/*
37		 * The flash starting at 0x000f8000 and ending at
38		 * 0x000fffff is reserved for use by the application.
39		 */
40
41		/*
42		 * Storage partition will be used by FCB/LittleFS/NVS
43		 * if enabled.
44		 */
45		storage_partition: partition@f8000 {
46			label = "storage";
47			reg = <0x000f8000 0x00008000>;
48		};
49	};
50};
51