blob: 7befec9a2a710ccc79219a934f8186a48baae9d9 [file] [log] [blame]
Roman Okhrimenko977b3752022-03-31 14:40:48 +03001/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/delete-node/ &slot1_partition;
8/delete-node/ &slot0_partition;
9/delete-node/ &boot_partition;
10
11&flash0 {
12 partitions {
13 boot_partition: partition@0 {
14 label = "mcuboot";
15 reg = <0x000000000 0x00010000>;
16 };
17 slot0_partition: partition@10000 {
18 label = "image-0";
19 reg = <0x000010000 0x00000A000>;
20 };
21 slot1_partition: partition@1A000 {
22 label = "image-1";
23 reg = <0x00001A000 0x00000A000>;
24 };
25 slot3_partition: partition@24000 {
26 label = "image-3";
27 reg = <0x000024000 0x00000A000>;
28 };
29 };
30};
31
32/ {
33 soc {
34 flash_controller2: flash-controller@2 {
35 compatible = "zephyr,sim-flash";
36 reg = <0x00000000 DT_SIZE_K(40)>;
37
38 #address-cells = <1>;
39 #size-cells = <1>;
40 erase-value = <0xff>;
41
42 label = "flash_ctrl";
43
44 flash_sim0: flash_sim@0 {
45 status = "okay";
46 compatible = "soc-nv-flash";
47 label = "simulated_flash";
48 erase-block-size = <4096>;
49 write-block-size = <1>;
50 reg = <0x00000000 DT_SIZE_K(40)>;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 slot2_partition: partition@0 {
58 label = "image-2";
59 reg = <0x00000000 0x00000A000>;
60 };
61 };
62 };
63 };
64 };
65};