Skip to content

Commit 72b3a92

Browse files
committed
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 6809cf6 commit 72b3a92

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
@@ -173,6 +173,65 @@
173173
pinctrl-names = "default";
174174
};
175175

176+
&flash0 {
177+
partitions {
178+
compatible = "fixed-partitions";
179+
#address-cells = <1>;
180+
#size-cells = <1>;
181+
182+
/* Set the partitions with first MB to make use of the whole Bank1 */
183+
boot_partition: partition@0 {
184+
label = "mcuboot";
185+
reg = <0x00000000 DT_SIZE_K(64)>;
186+
};
187+
};
188+
};
189+
190+
&xspi2 {
191+
pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1
192+
&xspim_p2_io0_pn2 &xspim_p2_io1_pn3
193+
&xspim_p2_io2_pn4 &xspim_p2_io3_pn5
194+
&xspim_p2_io4_pn8 &xspim_p2_io5_pn9
195+
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11
196+
&xspim_p2_dqs0_pn0>;
197+
pinctrl-names = "default";
198+
199+
status = "okay";
200+
201+
mx66uw1g45: xspi-nor-flash@0 {
202+
compatible = "st,stm32-xspi-nor";
203+
reg = <0>;
204+
size = <DT_SIZE_M(1024)>; /* 1 Gbits */
205+
ospi-max-frequency = <DT_FREQ_M(50)>;
206+
spi-bus-width = <XSPI_OCTO_MODE>;
207+
data-rate = <XSPI_DTR_TRANSFER>;
208+
status = "okay";
209+
210+
partitions {
211+
compatible = "fixed-partitions";
212+
#address-cells = <1>;
213+
#size-cells = <1>;
214+
215+
slot0_partition: partition@0 {
216+
label = "image-0";
217+
reg = <0x00000000 DT_SIZE_K(512)>;
218+
};
219+
slot1_partition: partition@80000 {
220+
label = "image-1";
221+
reg = <0x0080000 DT_SIZE_K(512)>;
222+
};
223+
scratch_partition: partition@100000 {
224+
label = "image-scratch";
225+
reg = <0x00100000 DT_SIZE_K(64)>;
226+
};
227+
storage_partition: partition@110000 {
228+
label = "storage";
229+
reg = <0x00110000 DT_SIZE_K(64)>;
230+
};
231+
};
232+
};
233+
};
234+
176235
&die_temp {
177236
status = "okay";
178237
};

boards/st/stm32h7s78_dk/stm32h7s78_dk.yaml

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

0 commit comments

Comments
 (0)