Skip to content

Commit 78cc8ab

Browse files
FRASTMkartben
authored andcommitted
boards: st: stm32h7s3l8 nucleo board supporting xspi instance
Add the XSPI 2 which is an octoSPI connection to a octo NOR flash MX25UW25645GXDI00 (256 Mbits, 1.8 V, 200 MHz, DTR, rww) on the nucleo_h7s3l8 board. Signed-off-by: Francois Ramu <[email protected]>
1 parent faddb5a commit 78cc8ab

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

boards/st/nucleo_h7s3l8/nucleo_h7s3l8.dts

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,19 @@
8585
status = "okay";
8686
};
8787

88+
/* PLL2 for clocking the xspi peripheral */
89+
&pll2 {
90+
div-m = <12>;
91+
mul-n = <200>;
92+
div-p = <2>;
93+
div-q = <2>;
94+
div-r = <2>;
95+
div-s = <2>;
96+
div-t = <2>;
97+
clocks = <&clk_hse>;
98+
status = "okay";
99+
};
100+
88101
&rcc {
89102
clocks = <&pll>;
90103
clock-frequency = <DT_FREQ_M(200)>;
@@ -139,3 +152,62 @@
139152
status = "okay";
140153
clock-frequency = <I2C_BITRATE_FAST>;
141154
};
155+
156+
&flash0 {
157+
partitions {
158+
compatible = "fixed-partitions";
159+
#address-cells = <1>;
160+
#size-cells = <1>;
161+
162+
/* Set the partitions with first MB to make use of the whole Bank1 */
163+
boot_partition: partition@0 {
164+
label = "mcuboot";
165+
reg = <0x00000000 DT_SIZE_K(64)>;
166+
};
167+
};
168+
};
169+
170+
&xspi2 {
171+
pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1
172+
&xspim_p2_io0_pn2 &xspim_p2_io1_pn3
173+
&xspim_p2_io2_pn4 &xspim_p2_io3_pn5
174+
&xspim_p2_io4_pn8 &xspim_p2_io5_pn9
175+
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11
176+
&xspim_p2_dqs0_pn0>;
177+
pinctrl-names = "default";
178+
179+
status = "okay";
180+
181+
mx25uw25645: xspi-nor-flash@0 {
182+
compatible = "st,stm32-xspi-nor";
183+
reg = <0>;
184+
size = <DT_SIZE_M(256)>; /* 256Mbits */
185+
ospi-max-frequency = <DT_FREQ_M(50)>;
186+
spi-bus-width = <XSPI_OCTO_MODE>;
187+
data-rate = <XSPI_DTR_TRANSFER>;
188+
status = "okay";
189+
190+
partitions {
191+
compatible = "fixed-partitions";
192+
#address-cells = <1>;
193+
#size-cells = <1>;
194+
195+
slot0_partition: partition@0 {
196+
label = "image-0";
197+
reg = <0x00000000 DT_SIZE_K(512)>;
198+
};
199+
slot1_partition: partition@80000 {
200+
label = "image-1";
201+
reg = <0x0080000 DT_SIZE_K(512)>;
202+
};
203+
scratch_partition: partition@100000 {
204+
label = "image-scratch";
205+
reg = <0x00100000 DT_SIZE_K(64)>;
206+
};
207+
storage_partition: partition@110000 {
208+
label = "storage";
209+
reg = <0x00110000 DT_SIZE_K(64)>;
210+
};
211+
};
212+
};
213+
};

boards/st/nucleo_h7s3l8/nucleo_h7s3l8.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ supported:
1212
- watchdog
1313
- entropy
1414
- adc
15+
- octospi
1516
vendor: st

0 commit comments

Comments
 (0)