Skip to content

Commit 2559a02

Browse files
committed
boot: zephyr: xspi1 for RWW on external NOR of stm32h7s78 disco kit
Define the overlay for the stm32h7s78 disco kit xpsi peripheral Signed-off-by: Francois Ramu <[email protected]>
1 parent a24f42d commit 2559a02

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Copyright (c) 2024 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,code-partition = &boot_partition;
10+
};
11+
};
12+
13+
&xspi1 {
14+
/* same pining as xspi2 */
15+
pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1
16+
&xspim_p2_io0_pn2 &xspim_p2_io1_pn3
17+
&xspim_p2_io2_pn4 &xspim_p2_io3_pn5
18+
&xspim_p2_io4_pn8 &xspim_p2_io5_pn9
19+
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11
20+
&xspim_p2_dqs0_pn0>;
21+
pinctrl-names = "default";
22+
23+
status = "okay";
24+
25+
mx66uw1g45: xspi-nor-flash@72000000 {
26+
compatible = "st,stm32-xspi-nor";
27+
reg = <0x72000000 DT_SIZE_M(96)>; /* bank1 - 3*/
28+
ospi-max-frequency = <DT_FREQ_M(50)>;
29+
spi-bus-width = <XSPI_OCTO_MODE>;
30+
data-rate = <XSPI_DTR_TRANSFER>;
31+
status = "okay";
32+
33+
partitions {
34+
compatible = "fixed-partitions";
35+
#address-cells = <1>;
36+
#size-cells = <1>;
37+
/* bank1 */
38+
slot1_partition: partition@0000000 {
39+
label = "image-1";
40+
reg = <0x0000000 DT_SIZE_K(416)>;
41+
};
42+
/* bank2 */
43+
scratch_partition: partition@2000000 {
44+
label = "image-scratch";
45+
reg = <0x2000000 DT_SIZE_M(32)>;
46+
};
47+
/* bank3 */
48+
storage_partition: partition@4000000 {
49+
label = "storage";
50+
reg = <0x4000000 DT_SIZE_M(32)>;
51+
};
52+
};
53+
};
54+
};
55+

0 commit comments

Comments
 (0)