Skip to content

Commit b926ba6

Browse files
FRASTMkartben
authored andcommitted
boards: arm: stm32h7s78 disco kit supporting xspi instance
Add the XSPI 2 which is an octoSPI connection to a octo NOR flash mx66uw1g45 on the stm32h7s78_dk disco kit Signed-off-by: Francois Ramu <[email protected]>
1 parent 78cc8ab commit b926ba6

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,65 @@
207207
};
208208
};
209209

210+
&flash0 {
211+
partitions {
212+
compatible = "fixed-partitions";
213+
#address-cells = <1>;
214+
#size-cells = <1>;
215+
216+
/* Set the partitions with first MB to make use of the whole Bank1 */
217+
boot_partition: partition@0 {
218+
label = "mcuboot";
219+
reg = <0x00000000 DT_SIZE_K(64)>;
220+
};
221+
};
222+
};
223+
224+
&xspi2 {
225+
pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1
226+
&xspim_p2_io0_pn2 &xspim_p2_io1_pn3
227+
&xspim_p2_io2_pn4 &xspim_p2_io3_pn5
228+
&xspim_p2_io4_pn8 &xspim_p2_io5_pn9
229+
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11
230+
&xspim_p2_dqs0_pn0>;
231+
pinctrl-names = "default";
232+
233+
status = "okay";
234+
235+
mx66uw1g45: xspi-nor-flash@0 {
236+
compatible = "st,stm32-xspi-nor";
237+
reg = <0>;
238+
size = <DT_SIZE_M(1024)>; /* 1 Gbits */
239+
ospi-max-frequency = <DT_FREQ_M(50)>;
240+
spi-bus-width = <XSPI_OCTO_MODE>;
241+
data-rate = <XSPI_DTR_TRANSFER>;
242+
status = "okay";
243+
244+
partitions {
245+
compatible = "fixed-partitions";
246+
#address-cells = <1>;
247+
#size-cells = <1>;
248+
249+
slot0_partition: partition@0 {
250+
label = "image-0";
251+
reg = <0x00000000 DT_SIZE_K(512)>;
252+
};
253+
slot1_partition: partition@80000 {
254+
label = "image-1";
255+
reg = <0x0080000 DT_SIZE_K(512)>;
256+
};
257+
scratch_partition: partition@100000 {
258+
label = "image-scratch";
259+
reg = <0x00100000 DT_SIZE_K(64)>;
260+
};
261+
storage_partition: partition@110000 {
262+
label = "storage";
263+
reg = <0x00110000 DT_SIZE_K(64)>;
264+
};
265+
};
266+
};
267+
};
268+
210269
&die_temp {
211270
status = "okay";
212271
};

boards/st/stm32h7s78_dk/stm32h7s78_dk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ supported:
1313
- watchdog
1414
- entropy
1515
- adc
16-
- usb_device
16+
- octospi
1717
- usbd
1818
- memc
1919
vendor: st

0 commit comments

Comments
 (0)