1/*
2 * Copyright (c) 2024 Kelly Lord
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/delete-node/ &code_partition;
8
9&flash0 {
10	partitions {
11		compatible = "fixed-partitions";
12		#address-cells = <1>;
13		#size-cells = <1>;
14
15		/*
16		 * Usable flash. Starts at 0x100, after the bootloader. The partition
17		 * size is 1MB minus the 0x100 bytes taken by the bootloader.
18		 */
19		code_partition: partition@100 {
20			label = "code";
21			reg = <0x100 (DT_SIZE_M(1) - 0x100)>;
22			read-only;
23		};
24
25		storage_partition: partition@100000 {
26			label = "storage";
27			reg = <0x100000  DT_SIZE_M(1)>;
28		};
29	};
30};
31
32/ {
33	msc_disk0 {
34		compatible = "zephyr,flash-disk";
35		partition = <&storage_partition>;
36		disk-name = "NAND";
37		cache-size = <4096>;
38	};
39};
40