Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 2 | /* |
3 | * Copyright : STMicroelectronics 2018 | ||||
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 4 | */ |
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 Delaunay | 1b58b55 | 2019-04-12 14:38:28 +0200 | [diff] [blame] | 20 | pinctrl0 = &pinctrl; |
21 | pinctrl1 = &pinctrl_z; | ||||
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 22 | }; |
23 | |||||
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 24 | binman: binman { |
25 | multiple-images; | ||||
26 | }; | ||||
27 | |||||
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 28 | clocks { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 29 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 30 | }; |
31 | |||||
Patrick Delaunay | cf45d9d | 2019-07-30 19:16:15 +0200 | [diff] [blame] | 32 | /* need PSCI for sysreset during board_f */ |
33 | psci { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 34 | bootph-some-ram; |
Patrick Delaunay | cf45d9d | 2019-07-30 19:16:15 +0200 | [diff] [blame] | 35 | }; |
36 | |||||
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 37 | reboot { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 38 | bootph-all; |
Patrick Delaunay | cdc2ca1 | 2020-07-06 13:26:53 +0200 | [diff] [blame] | 39 | compatible = "syscon-reboot"; |
40 | regmap = <&rcc>; | ||||
41 | offset = <0x404>; | ||||
42 | mask = <0x1>; | ||||
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 43 | }; |
44 | |||||
45 | soc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 46 | bootph-all; |
Marek Vasut | 379775c | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 47 | |
48 | ddr: ddr@5a003000 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 49 | bootph-all; |
Marek Vasut | 379775c | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 50 | |
51 | compatible = "st,stm32mp1-ddr"; | ||||
52 | |||||
Patrice Chotard | 75f5606 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 53 | reg = <0x5a003000 0x550 |
54 | 0x5a004000 0x234>; | ||||
Marek Vasut | 379775c | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 55 | |
Marek Vasut | 379775c | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 56 | status = "okay"; |
57 | }; | ||||
Patrick Delaunay | 089d435 | 2018-03-20 11:45:14 +0100 | [diff] [blame] | 58 | }; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 59 | }; |
60 | |||||
Patrick Delaunay | bdd7136 | 2019-02-27 17:01:27 +0100 | [diff] [blame] | 61 | &bsec { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 62 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 63 | }; |
64 | |||||
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 65 | &clk_csi { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 66 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 67 | }; |
68 | |||||
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 69 | &clk_hsi { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 70 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 71 | }; |
72 | |||||
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 73 | &clk_hse { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 74 | bootph-all; |
Patrick Delaunay | 32ddd26 | 2018-03-20 14:15:06 +0100 | [diff] [blame] | 75 | }; |
76 | |||||
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 77 | &clk_lsi { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 78 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 79 | }; |
80 | |||||
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 81 | &clk_lse { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 82 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 83 | }; |
84 | |||||
Patrick Delaunay | 72b1080 | 2020-05-25 12:19:48 +0200 | [diff] [blame] | 85 | &cpu0_opp_table { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 86 | bootph-pre-ram; |
Patrick Delaunay | 72b1080 | 2020-05-25 12:19:48 +0200 | [diff] [blame] | 87 | opp-650000000 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 88 | bootph-pre-ram; |
Patrick Delaunay | 72b1080 | 2020-05-25 12:19:48 +0200 | [diff] [blame] | 89 | }; |
90 | opp-800000000 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 91 | bootph-pre-ram; |
Patrick Delaunay | 72b1080 | 2020-05-25 12:19:48 +0200 | [diff] [blame] | 92 | }; |
93 | }; | ||||
94 | |||||
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 95 | &gpioa { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 96 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 97 | }; |
98 | |||||
99 | &gpiob { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 100 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 101 | }; |
102 | |||||
103 | &gpioc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 104 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 105 | }; |
106 | |||||
107 | &gpiod { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 108 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 109 | }; |
110 | |||||
111 | &gpioe { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 112 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 113 | }; |
114 | |||||
115 | &gpiof { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 116 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 117 | }; |
118 | |||||
119 | &gpiog { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 120 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 121 | }; |
122 | |||||
123 | &gpioh { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 124 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 125 | }; |
126 | |||||
127 | &gpioi { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 128 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 129 | }; |
130 | |||||
131 | &gpioj { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 132 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 133 | }; |
134 | |||||
135 | &gpiok { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 136 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 137 | }; |
138 | |||||
139 | &gpioz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 140 | bootph-all; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 141 | }; |
Patrice Chotard | 26d1107 | 2019-04-30 17:26:21 +0200 | [diff] [blame] | 142 | |
Patrick Delaunay | 1ebe34b | 2019-07-30 19:16:14 +0200 | [diff] [blame] | 143 | &iwdg2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 144 | bootph-all; |
Patrick Delaunay | 1ebe34b | 2019-07-30 19:16:14 +0200 | [diff] [blame] | 145 | }; |
146 | |||||
Patrick Delaunay | d918b88 | 2019-07-30 19:16:16 +0200 | [diff] [blame] | 147 | /* pre-reloc probe = reserve video frame buffer in video_reserve() */ |
148 | <dc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 149 | bootph-some-ram; |
Patrick Delaunay | d918b88 | 2019-07-30 19:16:16 +0200 | [diff] [blame] | 150 | }; |
151 | |||||
Patrick Delaunay | a841489 | 2020-10-15 15:01:12 +0200 | [diff] [blame] | 152 | /* 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 Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 159 | &pinctrl { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 160 | bootph-all; |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 161 | }; |
162 | |||||
163 | &pinctrl_z { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 164 | bootph-all; |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 165 | }; |
166 | |||||
Patrick Delaunay | 900494d | 2020-01-28 10:10:59 +0100 | [diff] [blame] | 167 | &pwr_regulators { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 168 | bootph-all; |
Patrice Chotard | 26d1107 | 2019-04-30 17:26:21 +0200 | [diff] [blame] | 169 | }; |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 170 | |
171 | &rcc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 172 | bootph-all; |
Patrick Delaunay | c22caac | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 173 | #address-cells = <1>; |
174 | #size-cells = <0>; | ||||
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 175 | }; |
176 | |||||
Patrick Delaunay | c3511d3 | 2020-07-06 14:48:58 +0200 | [diff] [blame] | 177 | &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 Delaunay | 4c6fcbc | 2024-01-15 15:05:57 +0100 | [diff] [blame] | 209 | #if defined(CONFIG_STM32MP15X_STM32IMAGE) |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 210 | &binman { |
211 | u-boot-stm32 { | ||||
212 | filename = "u-boot.stm32"; | ||||
213 | mkimage { | ||||
Patrice Chotard | 75f5606 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 214 | args = "-T stm32image -a 0xc0100000 -e 0xc0100000"; |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 215 | 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 Chotard | 75f5606 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 227 | args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500"; |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 228 | u-boot-spl { |
Simon Glass | 8b8ed94 | 2023-07-18 07:23:55 -0600 | [diff] [blame] | 229 | no-write-symbols; |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 230 | }; |
231 | }; | ||||
232 | }; | ||||
233 | }; | ||||
234 | #endif |