xref: /rk3399_ARM-atf/fdts/stm32mp15xx-dhcor-som.dtsi (revision 9a5dec66953bc6e124513430dcff6b921e7ed874)
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/*
3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
4 * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
5 * Copyright (C) 2020 Marek Vasut <marex@denx.de>
6 * Copyright (C) 2022 DH electronics GmbH
7 */
8
9#include "stm32mp15-pinctrl.dtsi"
10#include "stm32mp15xxaa-pinctrl.dtsi"
11#include <dt-bindings/clock/stm32mp1-clksrc.h>
12#include "stm32mp15-ddr3-dhsom-2x4Gb-1066-binG.dtsi"
13
14/ {
15	memory@c0000000 {
16		device_type = "memory";
17		reg = <0xc0000000 0x40000000>;
18	};
19};
20
21&cpu0 {
22	cpu-supply = <&vddcore>;
23};
24
25&cpu1 {
26	cpu-supply = <&vddcore>;
27};
28
29&hash1 {
30	status = "okay";
31};
32
33&i2c4 {
34	pinctrl-names = "default";
35	pinctrl-0 = <&i2c4_pins_a>;
36	i2c-scl-rising-time-ns = <185>;
37	i2c-scl-falling-time-ns = <20>;
38	status = "okay";
39
40	pmic: stpmic@33 {
41		compatible = "st,stpmic1";
42		reg = <0x33>;
43		interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
44		interrupt-controller;
45		#interrupt-cells = <2>;
46		status = "okay";
47
48		regulators {
49			compatible = "st,stpmic1-regulators";
50			ldo1-supply = <&v3v3>;
51			ldo2-supply = <&v3v3>;
52			ldo3-supply = <&vdd_ddr>;
53			ldo5-supply = <&v3v3>;
54			ldo6-supply = <&v3v3>;
55			pwr_sw1-supply = <&bst_out>;
56			pwr_sw2-supply = <&bst_out>;
57
58			vddcore: buck1 {
59				regulator-name = "vddcore";
60				regulator-min-microvolt = <1200000>;
61				regulator-max-microvolt = <1350000>;
62				regulator-always-on;
63				regulator-initial-mode = <0>;
64				regulator-over-current-protection;
65			};
66
67			vdd_ddr: buck2 {
68				regulator-name = "vdd_ddr";
69				regulator-min-microvolt = <1350000>;
70				regulator-max-microvolt = <1350000>;
71				regulator-always-on;
72				regulator-initial-mode = <0>;
73				regulator-over-current-protection;
74			};
75
76			vdd: buck3 {
77				regulator-name = "vdd";
78				regulator-min-microvolt = <3300000>;
79				regulator-max-microvolt = <3300000>;
80				regulator-always-on;
81				regulator-initial-mode = <0>;
82				regulator-over-current-protection;
83			};
84
85			v3v3: buck4 {
86				regulator-name = "v3v3";
87				regulator-min-microvolt = <3300000>;
88				regulator-max-microvolt = <3300000>;
89				regulator-always-on;
90				regulator-over-current-protection;
91				regulator-initial-mode = <0>;
92			};
93
94			vdda: ldo1 {
95				regulator-name = "vdda";
96				regulator-min-microvolt = <2900000>;
97				regulator-max-microvolt = <2900000>;
98			};
99
100			v2v8: ldo2 {
101				regulator-name = "v2v8";
102				regulator-min-microvolt = <2800000>;
103				regulator-max-microvolt = <2800000>;
104			};
105
106			vtt_ddr: ldo3 {
107				regulator-name = "vtt_ddr";
108				regulator-always-on;
109				regulator-over-current-protection;
110				st,regulator-sink-source;
111			};
112
113			vdd_usb: ldo4 {
114				regulator-name = "vdd_usb";
115				regulator-min-microvolt = <3300000>;
116				regulator-max-microvolt = <3300000>;
117			};
118
119			vdd_sd: ldo5 {
120				regulator-name = "vdd_sd";
121				regulator-min-microvolt = <2900000>;
122				regulator-max-microvolt = <2900000>;
123				regulator-boot-on;
124			};
125
126			v1v8: ldo6 {
127				regulator-name = "v1v8";
128				regulator-min-microvolt = <1800000>;
129				regulator-max-microvolt = <1800000>;
130				regulator-enable-ramp-delay = <300000>;
131			};
132
133			vref_ddr: vref_ddr {
134				regulator-name = "vref_ddr";
135				regulator-always-on;
136			};
137
138			bst_out: boost {
139				regulator-name = "bst_out";
140			};
141
142			vbus_otg: pwr_sw1 {
143				regulator-name = "vbus_otg";
144				regulator-active-discharge = <1>;
145			};
146
147			vbus_sw: pwr_sw2 {
148				regulator-name = "vbus_sw";
149				regulator-active-discharge = <1>;
150			};
151		};
152	};
153};
154
155&iwdg2 {
156	timeout-sec = <32>;
157	status = "okay";
158	secure-status = "okay";
159};
160
161&pwr_regulators {
162	vdd-supply = <&vdd>;
163	vdd_3v3_usbfs-supply = <&vdd_usb>;
164};
165
166&qspi {
167	pinctrl-names = "default";
168	pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
169	reg = <0x58003000 0x1000>, <0x70000000 0x200000>;
170	#address-cells = <1>;
171	#size-cells = <0>;
172	status = "okay";
173
174	flash0: flash@0 {
175		compatible = "jedec,spi-nor";
176		reg = <0>;
177		spi-rx-bus-width = <4>;
178		spi-max-frequency = <50000000>;
179		#address-cells = <1>;
180		#size-cells = <1>;
181	};
182};
183
184&rcc {
185	secure-status = "disabled";
186	st,clksrc = <
187		CLK_MPU_PLL1P
188		CLK_AXI_PLL2P
189		CLK_MCU_PLL3P
190		CLK_PLL12_HSE
191		CLK_PLL3_HSE
192		CLK_PLL4_HSE
193		CLK_RTC_LSE
194		CLK_MCO1_DISABLED
195		CLK_MCO2_DISABLED
196	>;
197
198	st,clkdiv = <
199		1 /*MPU*/
200		0 /*AXI*/
201		0 /*MCU*/
202		1 /*APB1*/
203		1 /*APB2*/
204		1 /*APB3*/
205		1 /*APB4*/
206		2 /*APB5*/
207		23 /*RTC*/
208		0 /*MCO1*/
209		0 /*MCO2*/
210	>;
211
212	st,pkcs = <
213		CLK_CKPER_HSE
214		CLK_FMC_ACLK
215		CLK_QSPI_ACLK
216		CLK_ETH_DISABLED
217		CLK_SDMMC12_PLL4P
218		CLK_DSI_DSIPLL
219		CLK_STGEN_HSE
220		CLK_USBPHY_HSE
221		CLK_SPI2S1_PLL3Q
222		CLK_SPI2S23_PLL3Q
223		CLK_SPI45_HSI
224		CLK_SPI6_HSI
225		CLK_I2C46_HSI
226		CLK_SDMMC3_PLL4P
227		CLK_USBO_USBPHY
228		CLK_ADC_CKPER
229		CLK_CEC_LSE
230		CLK_I2C12_HSI
231		CLK_I2C35_HSI
232		CLK_UART1_HSI
233		CLK_UART24_HSI
234		CLK_UART35_HSI
235		CLK_UART6_HSI
236		CLK_UART78_HSI
237		CLK_SPDIF_PLL4P
238		CLK_FDCAN_PLL4R
239		CLK_SAI1_PLL3Q
240		CLK_SAI2_PLL3Q
241		CLK_SAI3_PLL3Q
242		CLK_SAI4_PLL3Q
243		CLK_RNG1_LSI
244		CLK_RNG2_LSI
245		CLK_LPTIM1_PCLK1
246		CLK_LPTIM23_PCLK3
247		CLK_LPTIM45_LSE
248	>;
249
250	/* VCO = 1300.0 MHz => P = 650 (CPU) */
251	pll1: st,pll@0 {
252		compatible = "st,stm32mp1-pll";
253		reg = <0>;
254		cfg = <2 80 0 0 0 PQR(1,0,0)>;
255		frac = <0x800>;
256	};
257
258	/* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
259	pll2: st,pll@1 {
260		compatible = "st,stm32mp1-pll";
261		reg = <1>;
262		cfg = <2 65 1 0 0 PQR(1,1,1)>;
263		frac = <0x1400>;
264	};
265
266	/* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
267	pll3: st,pll@2 {
268		compatible = "st,stm32mp1-pll";
269		reg = <2>;
270		cfg = <1 33 1 16 36 PQR(1,1,1)>;
271		frac = <0x1a04>;
272	};
273
274	/* VCO = 600.0 MHz => P = 99, Q = 74, R = 99 */
275	pll4: st,pll@3 {
276		compatible = "st,stm32mp1-pll";
277		reg = <3>;
278		cfg = <3 98 5 7 5 PQR(1,1,1)>;
279	};
280};
281
282&rng1 {
283	status = "okay";
284};
285
286&rtc {
287	status = "okay";
288};
289