Skip to content

Commit a4b64a4

Browse files
committed
Better partitioning
Signed-off-by: Titouan Christophe <[email protected]>
1 parent cffb464 commit a4b64a4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
zephyr,console = &uart4;
2020
zephyr,shell-uart = &uart4;
2121
zephyr,flash = &flash0;
22+
zephyr,flash-controller = &mx66uw1g45g;
2223
zephyr,sram = &sram0;
24+
zephyr,code-partition = &slot0_partition;
2325
};
2426

2527
leds {
@@ -199,7 +201,7 @@
199201
mx66uw1g45g: xspi-nor-flash@70000000 {
200202
compatible = "st,stm32-xspi-nor";
201203
reg = <0x70000000 DT_SIZE_M(128)>; /* 1 Gbits */
202-
ospi-max-frequency = <DT_FREQ_M(50)>;
204+
ospi-max-frequency = <DT_FREQ_M(100)>;
203205
spi-bus-width = <XSPI_OCTO_MODE>;
204206
data-rate = <XSPI_DTR_TRANSFER>;
205207
four-byte-opcodes;
@@ -212,22 +214,22 @@
212214

213215
slot0_partition: partition@0 {
214216
label = "image-0";
215-
reg = <0x00000000 DT_SIZE_M(16)>;
217+
reg = <0x00000000 DT_SIZE_M(1)>;
216218
};
217219

218-
slot1_partition: partition@1000000 {
220+
slot1_partition: partition@100000 {
219221
label = "image-1";
220-
reg = <0x01000000 DT_SIZE_M(16)>;
222+
reg = <0x00100000 DT_SIZE_M(1)>;
221223
};
222224

223-
scratch_partition: partition@2000000 {
225+
scratch_partition: partition@200000 {
224226
label = "image-scratch";
225-
reg = <0x02000000 DT_SIZE_M(16)>;
227+
reg = <0x00200000 DT_SIZE_M(1)>;
226228
};
227229

228-
storage_partition: partition@3000000 {
230+
storage_partition: partition@300000 {
229231
label = "storage";
230-
reg = <0x03000000 DT_SIZE_M(80)>;
232+
reg = <0x00300000 DT_SIZE_M(125)>;
231233
};
232234
};
233235
};

0 commit comments

Comments
 (0)