blob: 3f57bd5fe0f831e194032f95f810a5564589b338 [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 };
Marek Vasut4812a382024-10-05 03:15:48 +020059
60 cpu0_opp_table: cpu0-opp-table {
61 compatible = "operating-points-v2";
62 opp-shared;
63 bootph-pre-ram;
64 opp-650000000 {
65 bootph-pre-ram;
66 opp-hz = /bits/ 64 <650000000>;
67 opp-microvolt = <1200000>;
68 opp-supported-hw = <0x1>;
69 };
70 opp-800000000 {
71 bootph-pre-ram;
72 opp-hz = /bits/ 64 <800000000>;
73 opp-microvolt = <1350000>;
74 opp-supported-hw = <0x2>;
75 };
76 };
Patrick Delaunay06020d82018-03-12 10:46:17 +010077};
78
Patrick Delaunaybdd71362019-02-27 17:01:27 +010079&bsec {
Simon Glassd3a98cb2023-02-13 08:56:33 -070080 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010081};
82
Patrick Delaunay06020d82018-03-12 10:46:17 +010083&clk_csi {
Simon Glassd3a98cb2023-02-13 08:56:33 -070084 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010085};
86
Patrick Delaunaya3705302019-07-11 11:15:28 +020087&clk_hsi {
Simon Glassd3a98cb2023-02-13 08:56:33 -070088 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010089};
90
Patrick Delaunaya3705302019-07-11 11:15:28 +020091&clk_hse {
Simon Glassd3a98cb2023-02-13 08:56:33 -070092 bootph-all;
Patrick Delaunay32ddd262018-03-20 14:15:06 +010093};
94
Patrick Delaunaya3705302019-07-11 11:15:28 +020095&clk_lsi {
Simon Glassd3a98cb2023-02-13 08:56:33 -070096 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +010097};
98
Patrick Delaunaya3705302019-07-11 11:15:28 +020099&clk_lse {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700100 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100101};
102
Marek Vasut4812a382024-10-05 03:15:48 +0200103&cpu0 {
104 nvmem-cells = <&part_number_otp>;
105 nvmem-cell-names = "part_number";
106 operating-points-v2 = <&cpu0_opp_table>;
Patrick Delaunay72b10802020-05-25 12:19:48 +0200107};
108
Patrick Delaunay06020d82018-03-12 10:46:17 +0100109&gpioa {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700110 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100111};
112
113&gpiob {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700114 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100115};
116
117&gpioc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700118 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100119};
120
121&gpiod {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700122 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100123};
124
125&gpioe {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700126 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100127};
128
129&gpiof {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700130 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100131};
132
133&gpiog {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700134 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100135};
136
137&gpioh {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700138 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100139};
140
141&gpioi {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700142 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100143};
144
145&gpioj {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700146 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100147};
148
149&gpiok {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700150 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100151};
152
153&gpioz {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700154 bootph-all;
Patrick Delaunay06020d82018-03-12 10:46:17 +0100155};
Patrice Chotard26d11072019-04-30 17:26:21 +0200156
Patrick Delaunay1ebe34b2019-07-30 19:16:14 +0200157&iwdg2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700158 bootph-all;
Patrick Delaunay1ebe34b2019-07-30 19:16:14 +0200159};
160
Patrick Delaunayd918b882019-07-30 19:16:16 +0200161/* pre-reloc probe = reserve video frame buffer in video_reserve() */
162&ltdc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700163 bootph-some-ram;
Patrick Delaunayd918b882019-07-30 19:16:16 +0200164};
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 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700174 bootph-all;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200175};
176
177&pinctrl_z {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700178 bootph-all;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200179};
180
Patrick Delaunay900494d2020-01-28 10:10:59 +0100181&pwr_regulators {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700182 bootph-all;
Patrice Chotard26d11072019-04-30 17:26:21 +0200183};
Patrick Delaunaya3705302019-07-11 11:15:28 +0200184
185&rcc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700186 bootph-all;
Patrick Delaunayc22caac2020-01-28 10:11:03 +0100187 #address-cells = <1>;
188 #size-cells = <0>;
Marek Vasutb65a41c2024-12-16 00:31:38 +0100189 clock-names = "hse", "hsi", "csi", "lse", "lsi";
190 clocks = <&clk_hse>, <&clk_hsi>, <&clk_csi>,
191 <&clk_lse>, <&clk_lsi>;
Patrick Delaunaya3705302019-07-11 11:15:28 +0200192};
193
Patrick Delaunayc3511d32020-07-06 14:48:58 +0200194&usart1 {
195 resets = <&rcc USART1_R>;
196};
197
198&usart2 {
199 resets = <&rcc USART2_R>;
200};
201
202&usart3 {
203 resets = <&rcc USART3_R>;
204};
205
206&uart4 {
207 resets = <&rcc UART4_R>;
208};
209
210&uart5 {
211 resets = <&rcc UART5_R>;
212};
213
214&usart6 {
215 resets = <&rcc USART6_R>;
216};
217
218&uart7 {
219 resets = <&rcc UART7_R>;
220};
221
222&uart8{
223 resets = <&rcc UART8_R>;
224};
225
Patrick Delaunay4c6fcbc2024-01-15 15:05:57 +0100226#if defined(CONFIG_STM32MP15X_STM32IMAGE)
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200227&binman {
228 u-boot-stm32 {
229 filename = "u-boot.stm32";
230 mkimage {
Patrice Chotard75f56062021-11-15 11:39:13 +0100231 args = "-T stm32image -a 0xc0100000 -e 0xc0100000";
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200232 u-boot {
233 };
234 };
235 };
236};
237#endif
238
239#if defined(CONFIG_SPL)
240&binman {
241 spl-stm32 {
242 filename = "u-boot-spl.stm32";
243 mkimage {
Patrice Chotard75f56062021-11-15 11:39:13 +0100244 args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500";
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200245 u-boot-spl {
Simon Glass8b8ed942023-07-18 07:23:55 -0600246 no-write-symbols;
Patrick Delaunay1e2a9b72021-10-13 15:11:18 +0200247 };
248 };
249 };
250};
251#endif