blob: e23d6c7d7ebf145fb165ae4f945c8e0a6df55d77 [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunay06020d82018-03-12 10:46:17 +01002/*
3 * Copyright : STMicroelectronics 2018
Patrick Delaunay06020d82018-03-12 10:46:17 +01004 */
5
6/ {
7 aliases {
8 gpio0 = &gpioa;
9 gpio1 = &gpiob;
10 gpio2 = &gpioc;
11 gpio3 = &gpiod;
12 gpio4 = &gpioe;
13 gpio5 = &gpiof;
14 gpio6 = &gpiog;
15 gpio7 = &gpioh;
16 gpio8 = &gpioi;
17 gpio9 = &gpioj;
18 gpio10 = &gpiok;
19 gpio25 = &gpioz;
Patrick Delaunay1b58b552019-04-12 14:38:28 +020020 pinctrl0 = &pinctrl;
21 pinctrl1 = &pinctrl_z;
Patrick Delaunay06020d82018-03-12 10:46:17 +010022 };
23
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +020024 binman: binman {
25 multiple-images;
26 };
27
Patrick Delaunaya3705302019-07-11 11:15:28 +020028 clocks {
Patrick Delaunay06020d82018-03-12 10:46:17 +010029 u-boot,dm-pre-reloc;
30 };
31
Patrick Delaunaycf45d9d2019-07-30 19:16:15 +020032 /* need PSCI for sysreset during board_f */
33 psci {
34 u-boot,dm-pre-proper;
35 };
36
Patrick Delaunaya3705302019-07-11 11:15:28 +020037 reboot {
Patrick Delaunay06020d82018-03-12 10:46:17 +010038 u-boot,dm-pre-reloc;
Patrick Delaunaycdc2ca12020-07-06 13:26:53 +020039 compatible = "syscon-reboot";
40 regmap = <&rcc>;
41 offset = <0x404>;
42 mask = <0x1>;
Patrick Delaunay06020d82018-03-12 10:46:17 +010043 };
44
45 soc {
46 u-boot,dm-pre-reloc;
Marek Vasut379775c2020-04-22 13:18:13 +020047
48 ddr: ddr@5a003000 {
49 u-boot,dm-pre-reloc;
50
51 compatible = "st,stm32mp1-ddr";
52
Patrice Chotard75f56062021-11-15 11:39:13 +010053 reg = <0x5a003000 0x550
54 0x5a004000 0x234>;
Marek Vasut379775c2020-04-22 13:18:13 +020055
56 clocks = <&rcc AXIDCG>,
57 <&rcc DDRC1>,
58 <&rcc DDRC2>,
59 <&rcc DDRPHYC>,
60 <&rcc DDRCAPB>,
61 <&rcc DDRPHYCAPB>;
62
63 clock-names = "axidcg",
64 "ddrc1",
65 "ddrc2",
66 "ddrphyc",
67 "ddrcapb",
68 "ddrphycapb";
69
70 status = "okay";
71 };
Patrick Delaunay089d4352018-03-20 11:45:14 +010072 };
Patrick Delaunay06020d82018-03-12 10:46:17 +010073};
74
Patrick Delaunaybdd71362019-02-27 17:01:27 +010075&bsec {
Patrick Delaunayb6cc5052020-05-25 12:19:41 +020076 u-boot,dm-pre-reloc;
Patrick Delaunay06020d82018-03-12 10:46:17 +010077};
78
Patrick Delaunay06020d82018-03-12 10:46:17 +010079&clk_csi {
80 u-boot,dm-pre-reloc;
81};
82
Patrick Delaunaya3705302019-07-11 11:15:28 +020083&clk_hsi {
Patrick Delaunay06020d82018-03-12 10:46:17 +010084 u-boot,dm-pre-reloc;
85};
86
Patrick Delaunaya3705302019-07-11 11:15:28 +020087&clk_hse {
Patrick Delaunay32ddd262018-03-20 14:15:06 +010088 u-boot,dm-pre-reloc;
89};
90
Patrick Delaunaya3705302019-07-11 11:15:28 +020091&clk_lsi {
Patrick Delaunay06020d82018-03-12 10:46:17 +010092 u-boot,dm-pre-reloc;
93};
94
Patrick Delaunaya3705302019-07-11 11:15:28 +020095&clk_lse {
Patrick Delaunay06020d82018-03-12 10:46:17 +010096 u-boot,dm-pre-reloc;
97};
98
Patrick Delaunay72b10802020-05-25 12:19:48 +020099&cpu0_opp_table {
100 u-boot,dm-spl;
101 opp-650000000 {
102 u-boot,dm-spl;
103 };
104 opp-800000000 {
105 u-boot,dm-spl;
106 };
107};
108
Patrick Delaunay06020d82018-03-12 10:46:17 +0100109&gpioa {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100110 u-boot,dm-pre-reloc;
111};
112
113&gpiob {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100114 u-boot,dm-pre-reloc;
115};
116
117&gpioc {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100118 u-boot,dm-pre-reloc;
119};
120
121&gpiod {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100122 u-boot,dm-pre-reloc;
123};
124
125&gpioe {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100126 u-boot,dm-pre-reloc;
127};
128
129&gpiof {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100130 u-boot,dm-pre-reloc;
131};
132
133&gpiog {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100134 u-boot,dm-pre-reloc;
135};
136
137&gpioh {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100138 u-boot,dm-pre-reloc;
139};
140
141&gpioi {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100142 u-boot,dm-pre-reloc;
143};
144
145&gpioj {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100146 u-boot,dm-pre-reloc;
147};
148
149&gpiok {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100150 u-boot,dm-pre-reloc;
151};
152
153&gpioz {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100154 u-boot,dm-pre-reloc;
155};
Patrice Chotard26d11072019-04-30 17:26:21 +0200156
Patrick Delaunay1ebe34b2019-07-30 19:16:14 +0200157&iwdg2 {
158 u-boot,dm-pre-reloc;
159};
160
Patrick Delaunayd918b882019-07-30 19:16:16 +0200161/* pre-reloc probe = reserve video frame buffer in video_reserve() */
162&ltdc {
163 u-boot,dm-pre-proper;
164};
165
Patrick Delaunaya8414892020-10-15 15:01:12 +0200166/* temp = waiting kernel update */
167&m4_rproc {
168 resets = <&rcc MCU_R>,
169 <&rcc MCU_HOLD_BOOT_R>;
170 reset-names = "mcu_rst", "hold_boot";
171};
172
Patrick Delaunaya3705302019-07-11 11:15:28 +0200173&pinctrl {
174 u-boot,dm-pre-reloc;
175};
176
177&pinctrl_z {
178 u-boot,dm-pre-reloc;
179};
180
Patrick Delaunay900494d2020-01-28 10:10:59 +0100181&pwr_regulators {
Patrice Chotard26d11072019-04-30 17:26:21 +0200182 u-boot,dm-pre-reloc;
183};
Patrick Delaunaya3705302019-07-11 11:15:28 +0200184
185&rcc {
186 u-boot,dm-pre-reloc;
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100187 #address-cells = <1>;
188 #size-cells = <0>;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200189};
190
191&sdmmc1 {
192 compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell";
193};
194
195&sdmmc2 {
196 compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell";
197};
198
199&sdmmc3 {
200 compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell";
201};
202
Patrick Delaunayc3511d32020-07-06 14:48:58 +0200203&usart1 {
204 resets = <&rcc USART1_R>;
205};
206
207&usart2 {
208 resets = <&rcc USART2_R>;
209};
210
211&usart3 {
212 resets = <&rcc USART3_R>;
213};
214
215&uart4 {
216 resets = <&rcc UART4_R>;
217};
218
219&uart5 {
220 resets = <&rcc UART5_R>;
221};
222
223&usart6 {
224 resets = <&rcc USART6_R>;
225};
226
227&uart7 {
228 resets = <&rcc UART7_R>;
229};
230
231&uart8{
232 resets = <&rcc UART8_R>;
233};
234
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200235#if defined(CONFIG_STM32MP15x_STM32IMAGE)
236&binman {
237 u-boot-stm32 {
238 filename = "u-boot.stm32";
239 mkimage {
Patrice Chotard75f56062021-11-15 11:39:13 +0100240 args = "-T stm32image -a 0xc0100000 -e 0xc0100000";
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200241 u-boot {
242 };
243 };
244 };
245};
246#endif
247
248#if defined(CONFIG_SPL)
249&binman {
250 spl-stm32 {
251 filename = "u-boot-spl.stm32";
252 mkimage {
Patrice Chotard75f56062021-11-15 11:39:13 +0100253 args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500";
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200254 u-boot-spl {
255 };
256 };
257 };
258};
259#endif