blob: 66d4c40c6a87a577e6ebdcb0bc8c7ea7b5bc04e2 [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 {
Simon Glass8c103c32023-02-13 08:56:33 -070029 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010030 };
31
Patrick Delaunay67b76842019-07-30 19:16:15 +020032 /* need PSCI for sysreset during board_f */
33 psci {
Simon Glass8c103c32023-02-13 08:56:33 -070034 bootph-some-ram;
Patrick Delaunay67b76842019-07-30 19:16:15 +020035 };
36
Patrick Delaunay35a54d42019-07-11 11:15:28 +020037 reboot {
Simon Glass8c103c32023-02-13 08:56:33 -070038 bootph-all;
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 {
Simon Glass8c103c32023-02-13 08:56:33 -070046 bootph-all;
Marek Vasuta8c97f42020-04-22 13:18:13 +020047
48 ddr: ddr@5a003000 {
Simon Glass8c103c32023-02-13 08:56:33 -070049 bootph-all;
Marek Vasuta8c97f42020-04-22 13:18:13 +020050
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 };
Marek Vasut241518c2024-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 Delaunay3d2d1152018-03-12 10:46:17 +010077};
78
Patrick Delaunaybfe1f082019-02-27 17:01:27 +010079&bsec {
Simon Glass8c103c32023-02-13 08:56:33 -070080 bootph-all;
Patrick Delaunay35a54d42019-07-11 11:15:28 +020081};
82
83&clk_csi {
Simon Glass8c103c32023-02-13 08:56:33 -070084 bootph-all;
Patrick Delaunaybfe1f082019-02-27 17:01:27 +010085};
86
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010087&clk_hsi {
Simon Glass8c103c32023-02-13 08:56:33 -070088 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010089};
90
91&clk_hse {
Simon Glass8c103c32023-02-13 08:56:33 -070092 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010093};
94
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010095&clk_lsi {
Simon Glass8c103c32023-02-13 08:56:33 -070096 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +010097};
98
Patrick Delaunay35a54d42019-07-11 11:15:28 +020099&clk_lse {
Simon Glass8c103c32023-02-13 08:56:33 -0700100 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100101};
102
Marek Vasut241518c2024-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 Delaunay4a87fea2020-05-25 12:19:48 +0200107};
108
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100109&gpioa {
Simon Glass8c103c32023-02-13 08:56:33 -0700110 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100111};
112
113&gpiob {
Simon Glass8c103c32023-02-13 08:56:33 -0700114 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100115};
116
117&gpioc {
Simon Glass8c103c32023-02-13 08:56:33 -0700118 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100119};
120
121&gpiod {
Simon Glass8c103c32023-02-13 08:56:33 -0700122 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100123};
124
125&gpioe {
Simon Glass8c103c32023-02-13 08:56:33 -0700126 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100127};
128
129&gpiof {
Simon Glass8c103c32023-02-13 08:56:33 -0700130 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100131};
132
133&gpiog {
Simon Glass8c103c32023-02-13 08:56:33 -0700134 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100135};
136
137&gpioh {
Simon Glass8c103c32023-02-13 08:56:33 -0700138 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100139};
140
141&gpioi {
Simon Glass8c103c32023-02-13 08:56:33 -0700142 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100143};
144
145&gpioj {
Simon Glass8c103c32023-02-13 08:56:33 -0700146 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100147};
148
149&gpiok {
Simon Glass8c103c32023-02-13 08:56:33 -0700150 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100151};
152
153&gpioz {
Simon Glass8c103c32023-02-13 08:56:33 -0700154 bootph-all;
Patrick Delaunay3d2d1152018-03-12 10:46:17 +0100155};
Patrice Chotard75500a42019-04-30 17:26:21 +0200156
Patrick Delaunay6d923002019-07-30 19:16:14 +0200157&iwdg2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700158 bootph-all;
Patrick Delaunay6d923002019-07-30 19:16:14 +0200159};
160
Patrick Delaunay2c258092019-07-30 19:16:16 +0200161/* pre-reloc probe = reserve video frame buffer in video_reserve() */
162&ltdc {
Simon Glass8c103c32023-02-13 08:56:33 -0700163 bootph-some-ram;
Patrick Delaunay2c258092019-07-30 19:16:16 +0200164};
165
Patrick Delaunay5a536df2020-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 Delaunay35a54d42019-07-11 11:15:28 +0200173&pinctrl {
Simon Glass8c103c32023-02-13 08:56:33 -0700174 bootph-all;
Patrice Chotard75500a42019-04-30 17:26:21 +0200175};
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200176
177&pinctrl_z {
Simon Glass8c103c32023-02-13 08:56:33 -0700178 bootph-all;
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200179};
180
Patrick Delaunay7915b992020-01-28 10:10:59 +0100181&pwr_regulators {
Simon Glass8c103c32023-02-13 08:56:33 -0700182 bootph-all;
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200183};
184
185&rcc {
Simon Glass8c103c32023-02-13 08:56:33 -0700186 bootph-all;
Patrick Delaunay8d93a972020-01-28 10:11:03 +0100187 #address-cells = <1>;
188 #size-cells = <0>;
Patrick Delaunay35a54d42019-07-11 11:15:28 +0200189};
190
Patrick Delaunay0b733552020-07-06 14:48:58 +0200191&usart1 {
192 resets = <&rcc USART1_R>;
193};
194
195&usart2 {
196 resets = <&rcc USART2_R>;
197};
198
199&usart3 {
200 resets = <&rcc USART3_R>;
201};
202
203&uart4 {
204 resets = <&rcc UART4_R>;
205};
206
207&uart5 {
208 resets = <&rcc UART5_R>;
209};
210
211&usart6 {
212 resets = <&rcc USART6_R>;
213};
214
215&uart7 {
216 resets = <&rcc UART7_R>;
217};
218
219&uart8{
220 resets = <&rcc UART8_R>;
221};
222
Patrick Delaunay9f1dc112024-01-15 15:05:57 +0100223#if defined(CONFIG_STM32MP15X_STM32IMAGE)
Patrick Delaunay5564b4c2021-10-13 15:11:18 +0200224&binman {
225 u-boot-stm32 {
226 filename = "u-boot.stm32";
227 mkimage {
Patrice Chotardb9a0cc82021-11-15 11:39:13 +0100228 args = "-T stm32image -a 0xc0100000 -e 0xc0100000";
Patrick Delaunay5564b4c2021-10-13 15:11:18 +0200229 u-boot {
230 };
231 };
232 };
233};
234#endif
235
236#if defined(CONFIG_SPL)
237&binman {
238 spl-stm32 {
239 filename = "u-boot-spl.stm32";
240 mkimage {
Patrice Chotardb9a0cc82021-11-15 11:39:13 +0100241 args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500";
Patrick Delaunay5564b4c2021-10-13 15:11:18 +0200242 u-boot-spl {
Simon Glass81639072023-07-18 07:23:55 -0600243 no-write-symbols;
Patrick Delaunay5564b4c2021-10-13 15:11:18 +0200244 };
245 };
246 };
247};
248#endif