blob: d5c87d29d8832263d1ed15ba54d1319f0872817b [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
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 {
Patrick Delaunayb6cc5052020-05-25 12:19:41 +020062 u-boot,dm-pre-reloc;
Patrick Delaunay06020d82018-03-12 10:46:17 +010063};
64
Patrick Delaunay06020d82018-03-12 10:46:17 +010065&clk_csi {
66 u-boot,dm-pre-reloc;
67};
68
Patrick Delaunaya3705302019-07-11 11:15:28 +020069&clk_hsi {
Patrick Delaunay06020d82018-03-12 10:46:17 +010070 u-boot,dm-pre-reloc;
71};
72
Patrick Delaunaya3705302019-07-11 11:15:28 +020073&clk_hse {
Patrick Delaunay32ddd262018-03-20 14:15:06 +010074 u-boot,dm-pre-reloc;
75};
76
Patrick Delaunaya3705302019-07-11 11:15:28 +020077&clk_lsi {
Patrick Delaunay06020d82018-03-12 10:46:17 +010078 u-boot,dm-pre-reloc;
79};
80
Patrick Delaunaya3705302019-07-11 11:15:28 +020081&clk_lse {
Patrick Delaunay06020d82018-03-12 10:46:17 +010082 u-boot,dm-pre-reloc;
83};
84
Patrick Delaunay72b10802020-05-25 12:19:48 +020085&cpu0_opp_table {
86 u-boot,dm-spl;
87 opp-650000000 {
88 u-boot,dm-spl;
89 };
90 opp-800000000 {
91 u-boot,dm-spl;
92 };
93};
94
Patrick Delaunay06020d82018-03-12 10:46:17 +010095&gpioa {
Patrick Delaunay06020d82018-03-12 10:46:17 +010096 u-boot,dm-pre-reloc;
97};
98
99&gpiob {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100100 u-boot,dm-pre-reloc;
101};
102
103&gpioc {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100104 u-boot,dm-pre-reloc;
105};
106
107&gpiod {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100108 u-boot,dm-pre-reloc;
109};
110
111&gpioe {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100112 u-boot,dm-pre-reloc;
113};
114
115&gpiof {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100116 u-boot,dm-pre-reloc;
117};
118
119&gpiog {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100120 u-boot,dm-pre-reloc;
121};
122
123&gpioh {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100124 u-boot,dm-pre-reloc;
125};
126
127&gpioi {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100128 u-boot,dm-pre-reloc;
129};
130
131&gpioj {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100132 u-boot,dm-pre-reloc;
133};
134
135&gpiok {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100136 u-boot,dm-pre-reloc;
137};
138
139&gpioz {
Patrick Delaunay06020d82018-03-12 10:46:17 +0100140 u-boot,dm-pre-reloc;
141};
Patrice Chotard26d11072019-04-30 17:26:21 +0200142
Patrick Delaunay1ebe34b2019-07-30 19:16:14 +0200143&iwdg2 {
144 u-boot,dm-pre-reloc;
145};
146
Patrick Delaunayd918b882019-07-30 19:16:16 +0200147/* pre-reloc probe = reserve video frame buffer in video_reserve() */
148&ltdc {
149 u-boot,dm-pre-proper;
150};
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 {
160 u-boot,dm-pre-reloc;
161};
162
163&pinctrl_z {
164 u-boot,dm-pre-reloc;
165};
166
Patrick Delaunay900494d2020-01-28 10:10:59 +0100167&pwr_regulators {
Patrice Chotard26d11072019-04-30 17:26:21 +0200168 u-boot,dm-pre-reloc;
169};
Patrick Delaunaya3705302019-07-11 11:15:28 +0200170
171&rcc {
172 u-boot,dm-pre-reloc;
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 Delaunay1e2a9b72021-10-13 15:11:18 +0200209#if defined(CONFIG_STM32MP15x_STM32IMAGE)
210&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 {
229 };
230 };
231 };
232};
233#endif