1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/* Because FAT FS needs at least 64kiB partition and default
8 * storage_partition is 32kiB for that board, we need to reorgatnize
9 * partitions to get at least 64KiB.
10 * This overlay removes image slot partitions and strips each of 64kiB,
11 * and removes the storage partition to add the additional 2*64kiB to
12 * it.
13 */
14/delete-node/ &slot0_partition;
15/delete-node/ &slot1_partition;
16/delete-node/ &storage_partition;
17
18&flash0 {
19
20	partitions {
21		compatible = "fixed-partitions";
22		#address-cells = <1>;
23		#size-cells = <1>;
24
25		slot0_partition: partition@c000 {
26			reg = <0x0000C000 0x00066000>;
27		};
28		slot1_partition: partition@72000 {
29			reg = <0x00072000 0x00066000>;
30		};
31
32		storage_partition: partition@d8000 {
33			label = "storage";
34			reg = <0x000d8000 0x00028000>;
35		};
36	};
37};
38
39/ {
40	msc_disk0 {
41		status="okay";
42		compatible = "zephyr,flash-disk";
43		partition = <&storage_partition>;
44		disk-name = "SD";
45		/* cache-size == page erase size */
46		cache-size = <4096>;
47	};
48};
49