blob: 52b914b84e4502b81391ef51d7e4009f737b505b [file] [log] [blame]
Yann Gautier4ede20a2020-09-18 15:04:14 +02001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
4 * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
5 */
6
7#include <dt-bindings/clock/stm32mp1-clksrc.h>
8#include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi"
9
10/ {
11 memory@c0000000 {
12 device_type = "memory";
13 reg = <0xc0000000 0x20000000>;
14 };
15
16 vin: vin {
17 compatible = "regulator-fixed";
18 regulator-name = "vin";
19 regulator-min-microvolt = <5000000>;
20 regulator-max-microvolt = <5000000>;
21 regulator-always-on;
22 };
23};
24
25&bsec {
26 board_id: board_id@ec {
27 reg = <0xec 0x4>;
28 st,non-secure-otp;
29 };
30};
31
32&clk_hse {
33 st,digbypass;
34};
35
36&cpu0{
37 cpu-supply = <&vddcore>;
38};
39
40&cpu1{
41 cpu-supply = <&vddcore>;
42};
43
44&hash1 {
45 status = "okay";
46};
47
48&i2c4 {
49 pinctrl-names = "default";
50 pinctrl-0 = <&i2c4_pins_a>;
51 i2c-scl-rising-time-ns = <185>;
52 i2c-scl-falling-time-ns = <20>;
53 clock-frequency = <400000>;
54 status = "okay";
55
56 pmic: stpmic@33 {
57 compatible = "st,stpmic1";
58 reg = <0x33>;
59 interrupts-extended = <&exti_pwr 55 IRQ_TYPE_EDGE_FALLING>;
60 interrupt-controller;
61 #interrupt-cells = <2>;
62 status = "okay";
63
64 regulators {
65 compatible = "st,stpmic1-regulators";
66 buck1-supply = <&vin>;
67 buck2-supply = <&vin>;
68 buck3-supply = <&vin>;
69 buck4-supply = <&vin>;
70 ldo1-supply = <&v3v3>;
71 ldo2-supply = <&vin>;
72 ldo3-supply = <&vdd_ddr>;
73 ldo4-supply = <&vin>;
74 ldo5-supply = <&vin>;
75 ldo6-supply = <&v3v3>;
76 vref_ddr-supply = <&vin>;
77 boost-supply = <&vin>;
78 pwr_sw1-supply = <&bst_out>;
79 pwr_sw2-supply = <&bst_out>;
80
81 vddcore: buck1 {
82 regulator-name = "vddcore";
83 regulator-min-microvolt = <1200000>;
84 regulator-max-microvolt = <1350000>;
85 regulator-always-on;
86 regulator-initial-mode = <0>;
87 regulator-over-current-protection;
88 };
89
90 vdd_ddr: buck2 {
91 regulator-name = "vdd_ddr";
92 regulator-min-microvolt = <1350000>;
93 regulator-max-microvolt = <1350000>;
94 regulator-always-on;
95 regulator-initial-mode = <0>;
96 regulator-over-current-protection;
97 };
98
99 vdd: buck3 {
100 regulator-name = "vdd";
101 regulator-min-microvolt = <3300000>;
102 regulator-max-microvolt = <3300000>;
103 regulator-always-on;
104 st,mask-reset;
105 regulator-initial-mode = <0>;
106 regulator-over-current-protection;
107 };
108
109 v3v3: buck4 {
110 regulator-name = "v3v3";
111 regulator-min-microvolt = <3300000>;
112 regulator-max-microvolt = <3300000>;
113 regulator-always-on;
114 regulator-over-current-protection;
115 regulator-initial-mode = <0>;
116 };
117
118 v1v8_audio: ldo1 {
119 regulator-name = "v1v8_audio";
120 regulator-min-microvolt = <1800000>;
121 regulator-max-microvolt = <1800000>;
122 regulator-always-on;
123 };
124
125 v3v3_hdmi: ldo2 {
126 regulator-name = "v3v3_hdmi";
127 regulator-min-microvolt = <3300000>;
128 regulator-max-microvolt = <3300000>;
129 regulator-always-on;
130 };
131
132 vtt_ddr: ldo3 {
133 regulator-name = "vtt_ddr";
134 regulator-min-microvolt = <500000>;
135 regulator-max-microvolt = <750000>;
136 regulator-always-on;
137 regulator-over-current-protection;
138 };
139
140 vdd_usb: ldo4 {
141 regulator-name = "vdd_usb";
142 regulator-min-microvolt = <3300000>;
143 regulator-max-microvolt = <3300000>;
144 regulator-always-on;
145 };
146
147 vdda: ldo5 {
148 regulator-name = "vdda";
149 regulator-min-microvolt = <2900000>;
150 regulator-max-microvolt = <2900000>;
151 regulator-boot-on;
152 };
153
154 v1v2_hdmi: ldo6 {
155 regulator-name = "v1v2_hdmi";
156 regulator-min-microvolt = <1200000>;
157 regulator-max-microvolt = <1200000>;
158 regulator-always-on;
159 };
160
161 vref_ddr: vref_ddr {
162 regulator-name = "vref_ddr";
163 regulator-always-on;
164 regulator-over-current-protection;
165 };
166
167 bst_out: boost {
168 regulator-name = "bst_out";
169 };
170
171 vbus_otg: pwr_sw1 {
172 regulator-name = "vbus_otg";
173 };
174
175 vbus_sw: pwr_sw2 {
176 regulator-name = "vbus_sw";
177 regulator-active-discharge = <1>;
178 };
179 };
180 };
181};
182
183&iwdg2 {
184 timeout-sec = <32>;
185 status = "okay";
186 secure-status = "okay";
187};
188
189&pwr_regulators {
190 vdd-supply = <&vdd>;
191 vdd_3v3_usbfs-supply = <&vdd_usb>;
192};
193
194&rcc {
195 secure-status = "disabled";
196 st,clksrc = <
197 CLK_MPU_PLL1P
198 CLK_AXI_PLL2P
199 CLK_MCU_PLL3P
200 CLK_PLL12_HSE
201 CLK_PLL3_HSE
202 CLK_PLL4_HSE
203 CLK_RTC_LSE
204 CLK_MCO1_DISABLED
205 CLK_MCO2_DISABLED
206 >;
207
208 st,clkdiv = <
209 1 /*MPU*/
210 0 /*AXI*/
211 0 /*MCU*/
212 1 /*APB1*/
213 1 /*APB2*/
214 1 /*APB3*/
215 1 /*APB4*/
216 2 /*APB5*/
217 23 /*RTC*/
218 0 /*MCO1*/
219 0 /*MCO2*/
220 >;
221
222 st,pkcs = <
223 CLK_CKPER_HSE
224 CLK_FMC_ACLK
225 CLK_QSPI_ACLK
226 CLK_ETH_DISABLED
227 CLK_SDMMC12_PLL4P
228 CLK_DSI_DSIPLL
229 CLK_STGEN_HSE
230 CLK_USBPHY_HSE
231 CLK_SPI2S1_PLL3Q
232 CLK_SPI2S23_PLL3Q
233 CLK_SPI45_HSI
234 CLK_SPI6_HSI
235 CLK_I2C46_HSI
236 CLK_SDMMC3_PLL4P
237 CLK_USBO_USBPHY
238 CLK_ADC_CKPER
239 CLK_CEC_LSE
240 CLK_I2C12_HSI
241 CLK_I2C35_HSI
242 CLK_UART1_HSI
243 CLK_UART24_HSI
244 CLK_UART35_HSI
245 CLK_UART6_HSI
246 CLK_UART78_HSI
247 CLK_SPDIF_PLL4P
248 CLK_FDCAN_PLL4R
249 CLK_SAI1_PLL3Q
250 CLK_SAI2_PLL3Q
251 CLK_SAI3_PLL3Q
252 CLK_SAI4_PLL3Q
253 CLK_RNG1_LSI
254 CLK_RNG2_LSI
255 CLK_LPTIM1_PCLK1
256 CLK_LPTIM23_PCLK3
257 CLK_LPTIM45_LSE
258 >;
259
260 /* VCO = 1300.0 MHz => P = 650 (CPU) */
261 pll1: st,pll@0 {
262 compatible = "st,stm32mp1-pll";
263 reg = <0>;
264 cfg = < 2 80 0 0 0 PQR(1,0,0) >;
265 frac = < 0x800 >;
266 };
267
268 /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
269 pll2: st,pll@1 {
270 compatible = "st,stm32mp1-pll";
271 reg = <1>;
272 cfg = <2 65 1 0 0 PQR(1,1,1)>;
273 frac = <0x1400>;
274 };
275
276 /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
277 pll3: st,pll@2 {
278 compatible = "st,stm32mp1-pll";
279 reg = <2>;
280 cfg = <1 33 1 16 36 PQR(1,1,1)>;
281 frac = <0x1a04>;
282 };
283
284 /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
285 pll4: st,pll@3 {
286 compatible = "st,stm32mp1-pll";
287 reg = <3>;
288 cfg = <3 98 5 7 7 PQR(1,1,1)>;
289 };
290};
291
292&rng1 {
293 status = "okay";
294};
295
296&rtc {
297 status = "okay";
298};
299
300&sdmmc1 {
301 pinctrl-names = "default";
302 pinctrl-0 = <&sdmmc1_b4_pins_a>;
303 disable-wp;
304 st,neg-edge;
305 bus-width = <4>;
306 vmmc-supply = <&v3v3>;
307 status = "okay";
308};
309
310&timers15 {
311 secure-status = "okay";
312};
313
314&uart4 {
315 pinctrl-names = "default";
316 pinctrl-0 = <&uart4_pins_a>;
317 status = "okay";
318};
319
320&uart7 {
321 pinctrl-names = "default";
322 pinctrl-0 = <&uart7_pins_b>;
323 status = "disabled";
324};
325
326&usart3 {
327 pinctrl-names = "default";
328 pinctrl-0 = <&usart3_pins_b>;
329 uart-has-rtscts;
330 status = "disabled";
331};
332
333&usbotg_hs {
334 phys = <&usbphyc_port1 0>;
335 phy-names = "usb2-phy";
336 usb-role-switch;
337 status = "okay";
338};
339
340&usbphyc {
341 status = "okay";
342};
343
344&usbphyc_port0 {
345 phy-supply = <&vdd_usb>;
346};
347
348&usbphyc_port1 {
349 phy-supply = <&vdd_usb>;
350};