Skip to content

Commit 648f56b

Browse files
committed
Add flash partitions
Signed-off-by: Titouan Christophe <[email protected]>
1 parent 1bc78e2 commit 648f56b

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,38 @@
210210
#address-cells = <1>;
211211
#size-cells = <1>;
212212

213-
partition@0 {
214-
label = "nor";
215-
reg = <0x00000000 DT_SIZE_M(16)>;
213+
slot0_partition: partition@0 {
214+
label = "image-0";
215+
reg = <0x00040000 DT_SIZE_M(16)>;
216216
};
217+
218+
slot1_partition: partition@1000000 {
219+
label = "image-1";
220+
reg = <0x00080000 DT_SIZE_M(16)>;
221+
};
222+
223+
scratch_partition: partition@2000000 {
224+
label = "image-scratch";
225+
reg = <0x000c0000 DT_SIZE_M(16)>;
226+
};
227+
228+
storage_partition: partition@3000000 {
229+
label = "storage";
230+
reg = <0x00020000 DT_SIZE_M(80)>;
231+
};
232+
};
233+
};
234+
};
235+
236+
&flash0 {
237+
partitions {
238+
compatible = "fixed-partitions";
239+
#address-cells = <1>;
240+
#size-cells = <1>;
241+
242+
boot_partition: partition@0 {
243+
label = "mcuboot";
244+
reg = <0 DT_SIZE_K(64)>;
217245
};
218246
};
219247
};

0 commit comments

Comments
 (0)