Skip to content

Commit 1bc78e2

Browse files
committed
board: st: stm32h7s78-dk: add support for on-board flash on xspi2
Add device tree entry for the 1Gbit octo-spi flash on the board, wired to the xspi2 peripheral. Signed-off-by: Titouan Christophe <[email protected]>
1 parent 227c456 commit 1bc78e2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,38 @@
186186
status = "okay";
187187
};
188188

189+
&xspi2 {
190+
pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1
191+
&xspim_p2_io0_pn2 &xspim_p2_io1_pn3
192+
&xspim_p2_io2_pn4 &xspim_p2_io3_pn5
193+
&xspim_p2_io4_pn8 &xspim_p2_io5_pn9
194+
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11
195+
&xspim_p2_dqs0_pn0>;
196+
pinctrl-names = "default";
197+
status = "okay";
198+
199+
mx66uw1g45g: xspi-nor-flash@70000000 {
200+
compatible = "st,stm32-xspi-nor";
201+
reg = <0x70000000 DT_SIZE_M(128)>; /* 1 Gbits */
202+
ospi-max-frequency = <DT_FREQ_M(50)>;
203+
spi-bus-width = <XSPI_OCTO_MODE>;
204+
data-rate = <XSPI_DTR_TRANSFER>;
205+
four-byte-opcodes;
206+
status = "okay";
207+
208+
partitions {
209+
compatible = "fixed-partitions";
210+
#address-cells = <1>;
211+
#size-cells = <1>;
212+
213+
partition@0 {
214+
label = "nor";
215+
reg = <0x00000000 DT_SIZE_M(16)>;
216+
};
217+
};
218+
};
219+
};
220+
189221
usb2: &usbotg_fs {
190222
pinctrl-0 = <&usb_otg_fs_dm_pm12 &usb_otg_fs_dp_pm11>;
191223
pinctrl-names = "default";

0 commit comments

Comments
 (0)