Skip to content

Commit 8ee785c

Browse files
sylvioalvescfriedt
authored andcommitted
boards: esp32c3_devkitm: update device tree to add new partitions
This adds mcuboot slot0, slot1 and scratch partition Signed-off-by: Sylvio Alves <[email protected]>
1 parent 5fa5658 commit 8ee785c

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

boards/riscv/esp32c3_devkitm/esp32c3_devkitm.dts

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,34 @@
8888
#address-cells = <1>;
8989
#size-cells = <1>;
9090

91-
storage_partition: partition@9000 {
91+
/* Reserve 60kB for the bootloader */
92+
boot_partition: partition@0000 {
93+
label = "mcuboot";
94+
reg = <0x00000000 0x0000F000>;
95+
read-only;
96+
};
97+
98+
/* Reserve 1024kB for the application in slot 0 */
99+
slot0_partition: partition@10000 {
100+
label = "image-0";
101+
reg = <0x00010000 0x00100000>;
102+
};
103+
104+
/* Reserve 1024kB for the application in slot 1 */
105+
slot1_partition: partition@110000 {
106+
label = "image-1";
107+
reg = <0x00110000 0x00100000>;
108+
};
109+
110+
/* Reserve 256kB for the scratch partition */
111+
scratch_partition: partition@210000 {
112+
label = "image-scratch";
113+
reg = <0x00210000 0x00040000>;
114+
};
115+
116+
storage_partition: partition@250000 {
92117
label = "storage";
93-
reg = <0x00009000 0x00006000>;
118+
reg = <0x00250000 0x00006000>;
94119
};
95120
};
96121
};

0 commit comments

Comments
 (0)