blob: a1f9f3823d01263a4e28ae082df428d7126d0f30 [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 };
22};
23
24/ {
25 soc {
26 flash_controller2: flash-controller@2 {
27 compatible = "zephyr,sim-flash";
28 reg = <0x00000000 DT_SIZE_K(40)>;
29
30 #address-cells = <1>;
31 #size-cells = <1>;
32 erase-value = <0xff>;
33
34 label = "flash_ctrl";
35
36 flash_sim0: flash_sim@0 {
37 status = "okay";
38 compatible = "soc-nv-flash";
39 label = "simulated_flash";
40 erase-block-size = <4096>;
41 write-block-size = <1>;
42 reg = <0x00000000 DT_SIZE_K(40)>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 slot1_partition: partition@0 {
50 label = "image-1";
51 reg = <0x00000000 0x00000A000>;
52 };
53 };
54 };
55 };
56 };
57};