blob: d5c87d29d8832263d1ed15ba54d1319f0872817b [file] [log] [blame]
Tom Rini4549e782018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunay3d2d1152018-03-12 10:46:17 +01002/*
3 * Copyright : STMicroelectronics 2018
Patrick Delaunay3d2d1152018-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 Delaunay1258e462019-04-12 14:38:28 +020020 pinctrl0 = &pinctrl;
21 pinctrl1 = &pinctrl_z;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010022 };
23
Patrick Delaunay5564b4c2021-10-13 15:11:18 +020024 binman: binman {
25 multiple-images;
26 };
27
Patrick Delaunay35a54d42019-07-11 11:15:28 +020028 clocks {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010029 u-boot,dm-pre-reloc;
30 };
31
Patrick Delaunay67b76842019-07-30 19:16:15 +020032 /* need PSCI for sysreset during board_f */
33 psci {
34 u-boot,dm-pre-proper;
35 };
36
Patrick Delaunay35a54d42019-07-11 11:15:28 +020037 reboot {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010038 u-boot,dm-pre-reloc;
Patrick Delaunay500327e2020-07-06 13:26:53 +020039 compatible = "syscon-reboot";
40 regmap = <&rcc>;
41 offset = <0x404>;
42 mask = <0x1>;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010043 };
44
45 soc {
46 u-boot,dm-pre-reloc;
Marek Vasuta8c97f42020-04-22 13:18:13 +020047
48 ddr: ddr@5a003000 {
49 u-boot,dm-pre-reloc;
50
51 compatible = "st,stm32mp1-ddr";
52
Patrice Chotardb9a0cc82021-11-15 11:39:13 +010053 reg = <0x5a003000 0x550
54 0x5a004000 0x234>;
Marek Vasuta8c97f42020-04-22 13:18:13 +020055
Marek Vasuta8c97f42020-04-22 13:18:13 +020056 status = "okay";
57 };
Patrick Delaunaye16750f2018-03-20 11:45:14 +010058 };
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010059};
60
Patrick Delaunaybfe1f082019-02-27 17:01:27 +010061&bsec {
Patrick Delaunay95bd49a2020-05-25 12:19:41 +020062 u-boot,dm-pre-reloc;
Patrick Delaunay35a54d42019-07-11 11:15:28 +020063};
64
65&clk_csi {
Patrick Delaunaybfe1f082019-02-27 17:01:27 +010066 u-boot,dm-pre-reloc;
67};
68
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010069&clk_hsi {
70 u-boot,dm-pre-reloc;
71};
72
73&clk_hse {
74 u-boot,dm-pre-reloc;
75};
76
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010077&clk_lsi {
78 u-boot,dm-pre-reloc;
79};
80
Patrick Delaunay35a54d42019-07-11 11:15:28 +020081&clk_lse {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010082 u-boot,dm-pre-reloc;
83};
84
Patrick Delaunay4a87fea2020-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 Delaunay3d2d1152018-03-12 10:46:17 +010095&gpioa {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010096 u-boot,dm-pre-reloc;
97};
98
99&gpiob {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100100 u-boot,dm-pre-reloc;
101};
102
103&gpioc {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100104 u-boot,dm-pre-reloc;
105};
106
107&gpiod {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100108 u-boot,dm-pre-reloc;
109};
110
111&gpioe {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100112 u-boot,dm-pre-reloc;
113};
114
115&gpiof {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100116 u-boot,dm-pre-reloc;
117};
118
119&gpiog {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100120 u-boot,dm-pre-reloc;
121};
122
123&gpioh {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100124 u-boot,dm-pre-reloc;
125};
126
127&gpioi {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100128 u-boot,dm-pre-reloc;
129};
130
131&gpioj {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100132 u-boot,dm-pre-reloc;
133};
134
135&gpiok {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100136 u-boot,dm-pre-reloc;
137};
138
139&gpioz {
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100140 u-boot,dm-pre-reloc;
141};
Patrice Chotard75500a42019-04-30 17:26:21 +0200142
Patrick Delaunay6d923002019-07-30 19:16:14 +0200143&iwdg2 {
144 u-boot,dm-pre-reloc;
145};
146
Patrick Delaunay2c258092019-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 Delaunay5a536df2020-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 Delaunay35a54d42019-07-11 11:15:28 +0200159&pinctrl {
Patrice Chotard75500a42019-04-30 17:26:21 +0200160 u-boot,dm-pre-reloc;
161};
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200162
163&pinctrl_z {
164 u-boot,dm-pre-reloc;
165};
166
Patrick Delaunay7915b992020-01-28 10:10:59 +0100167&pwr_regulators {
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200168 u-boot,dm-pre-reloc;
169};
170
171&rcc {
172 u-boot,dm-pre-reloc;
Patrick Delaunay8d93a972020-01-28 10:11:03 +0100173 #address-cells = <1>;
174 #size-cells = <0>;
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200175};
176
Patrick Delaunay0b733552020-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 Delaunay5564b4c2021-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 Chotardb9a0cc82021-11-15 11:39:13 +0100214 args = "-T stm32image -a 0xc0100000 -e 0xc0100000";
Patrick Delaunay5564b4c2021-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 Chotardb9a0cc82021-11-15 11:39:13 +0100227 args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500";
Patrick Delaunay5564b4c2021-10-13 15:11:18 +0200228 u-boot-spl {
229 };
230 };
231 };
232};
233#endif