blob: fe56f05616a04c8400ac01e5cd1290125e0c1078 [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 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070029 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010030 };
31
Patrick Delaunaycf45d9d2019-07-30 19:16:15 +020032 /* need PSCI for sysreset during board_f */
33 psci {
Simon Glassd3a98cb2023-02-13 08:56:33 -070034 bootph-some-ram;
Patrick Delaunaycf45d9d2019-07-30 19:16:15 +020035 };
36
Patrick Delaunaya3705302019-07-11 11:15:28 +020037 reboot {
Simon Glassd3a98cb2023-02-13 08:56:33 -070038 bootph-all;
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 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070046 bootph-all;
Marek Vasut379775c2020-04-22 13:18:13 +020047
48 ddr: ddr@5a003000 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070049 bootph-all;
Marek Vasut379775c2020-04-22 13:18:13 +020050
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
Marek Vasut379775c2020-04-22 13:18:13 +020056 status = "okay";
57 };
Patrick Delaunay089d4352018-03-20 11:45:14 +010058 };
Patrick Delaunay06020d82018-03-12 10:46:17 +010059};
60
Patrick Delaunaybdd71362019-02-27 17:01:27 +010061&bsec {
Simon Glassd3a98cb2023-02-13 08:56:33 -070062 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010063};
64
Patrick Delaunay06020d82018-03-12 10:46:17 +010065&clk_csi {
Simon Glassd3a98cb2023-02-13 08:56:33 -070066 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010067};
68
Patrick Delaunaya3705302019-07-11 11:15:28 +020069&clk_hsi {
Simon Glassd3a98cb2023-02-13 08:56:33 -070070 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010071};
72
Patrick Delaunaya3705302019-07-11 11:15:28 +020073&clk_hse {
Simon Glassd3a98cb2023-02-13 08:56:33 -070074 bootph-all;
Patrick Delaunay32ddd262018-03-20 14:15:06 +010075};
76
Patrick Delaunaya3705302019-07-11 11:15:28 +020077&clk_lsi {
Simon Glassd3a98cb2023-02-13 08:56:33 -070078 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010079};
80
Patrick Delaunaya3705302019-07-11 11:15:28 +020081&clk_lse {
Simon Glassd3a98cb2023-02-13 08:56:33 -070082 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010083};
84
Patrick Delaunay72b10802020-05-25 12:19:48 +020085&cpu0_opp_table {
Simon Glassd3a98cb2023-02-13 08:56:33 -070086 bootph-pre-ram;
Patrick Delaunay72b10802020-05-25 12:19:48 +020087 opp-650000000 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070088 bootph-pre-ram;
Patrick Delaunay72b10802020-05-25 12:19:48 +020089 };
90 opp-800000000 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070091 bootph-pre-ram;
Patrick Delaunay72b10802020-05-25 12:19:48 +020092 };
93};
94
Patrick Delaunay06020d82018-03-12 10:46:17 +010095&gpioa {
Simon Glassd3a98cb2023-02-13 08:56:33 -070096 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010097};
98
99&gpiob {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700100 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100101};
102
103&gpioc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700104 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100105};
106
107&gpiod {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700108 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100109};
110
111&gpioe {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700112 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100113};
114
115&gpiof {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700116 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100117};
118
119&gpiog {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700120 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100121};
122
123&gpioh {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700124 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100125};
126
127&gpioi {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700128 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100129};
130
131&gpioj {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700132 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100133};
134
135&gpiok {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700136 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100137};
138
139&gpioz {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700140 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100141};
Patrice Chotard26d11072019-04-30 17:26:21 +0200142
Patrick Delaunay1ebe34b2019-07-30 19:16:14 +0200143&iwdg2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700144 bootph-all;
Patrick Delaunay1ebe34b2019-07-30 19:16:14 +0200145};
146
Patrick Delaunayd918b882019-07-30 19:16:16 +0200147/* pre-reloc probe = reserve video frame buffer in video_reserve() */
148&ltdc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700149 bootph-some-ram;
Patrick Delaunayd918b882019-07-30 19:16:16 +0200150};
151
Patrick Delaunaya8414892020-10-15 15:01:12 +0200152/* temp = waiting kernel update */
153&m4_rproc {
154 resets = <&rcc MCU_R>,
155 <&rcc MCU_HOLD_BOOT_R>;
156 reset-names = "mcu_rst", "hold_boot";
157};
158
Patrick Delaunaya3705302019-07-11 11:15:28 +0200159&pinctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700160 bootph-all;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200161};
162
163&pinctrl_z {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700164 bootph-all;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200165};
166
Patrick Delaunay900494d2020-01-28 10:10:59 +0100167&pwr_regulators {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700168 bootph-all;
Patrice Chotard26d11072019-04-30 17:26:21 +0200169};
Patrick Delaunaya3705302019-07-11 11:15:28 +0200170
171&rcc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700172 bootph-all;
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100173 #address-cells = <1>;
174 #size-cells = <0>;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200175};
176
Patrick Delaunayc3511d32020-07-06 14:48:58 +0200177&usart1 {
178 resets = <&rcc USART1_R>;
179};
180
181&usart2 {
182 resets = <&rcc USART2_R>;
183};
184
185&usart3 {
186 resets = <&rcc USART3_R>;
187};
188
189&uart4 {
190 resets = <&rcc UART4_R>;
191};
192
193&uart5 {
194 resets = <&rcc UART5_R>;
195};
196
197&usart6 {
198 resets = <&rcc USART6_R>;
199};
200
201&uart7 {
202 resets = <&rcc UART7_R>;
203};
204
205&uart8{
206 resets = <&rcc UART8_R>;
207};
208
Patrick Delaunay4c6fcbc2024-01-15 15:05:57 +0100209#if defined(CONFIG_STM32MP15X_STM32IMAGE)
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200210&binman {
211 u-boot-stm32 {
212 filename = "u-boot.stm32";
213 mkimage {
Patrice Chotard75f56062021-11-15 11:39:13 +0100214 args = "-T stm32image -a 0xc0100000 -e 0xc0100000";
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200215 u-boot {
216 };
217 };
218 };
219};
220#endif
221
222#if defined(CONFIG_SPL)
223&binman {
224 spl-stm32 {
225 filename = "u-boot-spl.stm32";
226 mkimage {
Patrice Chotard75f56062021-11-15 11:39:13 +0100227 args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500";
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200228 u-boot-spl {
Simon Glass8b8ed942023-07-18 07:23:55 -0600229 no-write-symbols;
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200230 };
231 };
232 };
233};
234#endif