xref: /rk3399_rockchip-uboot/arch/arm/dts/rk3328-evb.dts (revision befbd723c2c9eadcfa6e9ae1dca845f05d3c29c8)
1/*
2 * (C) Copyright 2016 Rockchip Electronics Co., Ltd
3 *
4 * SPDX-License-Identifier:     GPL-2.0+
5 */
6
7/dts-v1/;
8#include "rk3328.dtsi"
9
10/ {
11	model = "Rockchip RK3328 EVB";
12	compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
13
14	chosen {
15		stdout-path = &uart2;
16	};
17
18	vcc3v3_sdmmc: sdmmc-pwren {
19		compatible = "regulator-fixed";
20		regulator-name = "vcc3v3";
21		gpio = <&gpio0 30 GPIO_ACTIVE_LOW>;
22		regulator-always-on;
23		regulator-boot-on;
24	};
25
26	vcc5v0_otg: vcc5v0-otg-drv {
27		compatible = "regulator-fixed";
28		enable-active-high;
29		regulator-name = "vcc5v0_otg";
30		gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>;
31		regulator-min-microvolt = <5000000>;
32		regulator-max-microvolt = <5000000>;
33	};
34
35	vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
36		compatible = "regulator-fixed";
37		enable-active-high;
38		regulator-name = "vcc5v0_host_xhci";
39		gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
40		regulator-min-microvolt = <5000000>;
41		regulator-max-microvolt = <5000000>;
42	};
43};
44
45&uart2 {
46	status = "okay";
47};
48
49&sdmmc {
50	bus-width = <4>;
51	cap-mmc-highspeed;
52	cap-sd-highspeed;
53	card-detect-delay = <200>;
54	disable-wp;
55	num-slots = <1>;
56	pinctrl-names = "default";
57	pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>;
58	status = "okay";
59};
60
61&emmc {
62	bus-width = <8>;
63	cap-mmc-highspeed;
64	supports-emmc;
65	disable-wp;
66	non-removable;
67	num-slots = <1>;
68	pinctrl-names = "default";
69	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
70	status = "okay";
71};
72
73&u2phy {
74        status = "okay";
75};
76
77&u2phy_otg {
78        status = "okay";
79};
80
81&u2phy_host {
82        status = "okay";
83};
84
85&usb_host0_ehci {
86	status = "okay";
87};
88
89&usb_host0_ohci {
90	status = "okay";
91};
92
93&usb20_otg {
94	vbus-supply = <&vcc5v0_otg>;
95	status = "okay";
96};
97
98&usb_host0_xhci {
99	vbus-supply = <&vcc5v0_host_xhci>;
100	status = "okay";
101};
102
103&i2c1 {
104	clock-frequency = <400000>;
105	i2c-scl-rising-time-ns = <168>;
106	i2c-scl-falling-time-ns = <4>;
107	status = "okay";
108
109	rk805: pmic@18 {
110		compatible = "rockchip,rk805";
111		status = "okay";
112		reg = <0x18>;
113		interrupt-parent = <&gpio2>;
114		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
115		pinctrl-names = "default";
116		pinctrl-0 = <&pmic_int_l>;
117		rockchip,system-power-controller;
118		wakeup-source;
119		gpio-controller;
120		#gpio-cells = <2>;
121		#clock-cells = <1>;
122		clock-output-names = "xin32k", "rk805-clkout2";
123
124		pwrkey {
125			status = "okay";
126		};
127
128		regulators {
129			vdd_logic: DCDC_REG1 {
130				regulator-name = "vdd_logic";
131				regulator-min-microvolt = <712500>;
132				regulator-max-microvolt = <1450000>;
133				regulator-ramp-delay = <6001>;
134				regulator-boot-on;
135				regulator-always-on;
136				regulator-state-mem {
137					regulator-on-in-suspend;
138					regulator-suspend-microvolt = <1000000>;
139				};
140			};
141
142			vdd_arm: DCDC_REG2 {
143				regulator-name = "vdd_arm";
144				regulator-min-microvolt = <712500>;
145				regulator-max-microvolt = <1450000>;
146				regulator-ramp-delay = <6001>;
147				regulator-boot-on;
148				regulator-always-on;
149				regulator-state-mem {
150					regulator-on-in-suspend;
151					regulator-suspend-microvolt = <1000000>;
152				};
153			};
154
155			vcc_ddr: DCDC_REG3 {
156				regulator-name = "vcc_ddr";
157				regulator-boot-on;
158				regulator-always-on;
159				regulator-state-mem {
160					regulator-on-in-suspend;
161				};
162			};
163
164			vcc_io: DCDC_REG4 {
165				regulator-name = "vcc_io";
166				regulator-min-microvolt = <3300000>;
167				regulator-max-microvolt = <3300000>;
168				regulator-boot-on;
169				regulator-always-on;
170				regulator-state-mem {
171					regulator-on-in-suspend;
172					regulator-suspend-microvolt = <3300000>;
173				};
174			};
175
176			vdd_18: LDO_REG1 {
177				regulator-name = "vdd_18";
178				regulator-min-microvolt = <1800000>;
179				regulator-max-microvolt = <1800000>;
180				regulator-boot-on;
181				regulator-always-on;
182				regulator-state-mem {
183					regulator-on-in-suspend;
184					regulator-suspend-microvolt = <1800000>;
185				};
186			};
187
188			vcc_18emmc: LDO_REG2 {
189				regulator-name = "vcc_18emmc";
190				regulator-min-microvolt = <1800000>;
191				regulator-max-microvolt = <1800000>;
192				regulator-boot-on;
193				regulator-always-on;
194				regulator-state-mem {
195					regulator-on-in-suspend;
196					regulator-suspend-microvolt = <1800000>;
197				};
198			};
199
200			vdd_10: LDO_REG3 {
201				regulator-name = "vdd_10";
202				regulator-min-microvolt = <1000000>;
203				regulator-max-microvolt = <1000000>;
204				regulator-boot-on;
205				regulator-always-on;
206				regulator-state-mem {
207					regulator-on-in-suspend;
208					regulator-suspend-microvolt = <1000000>;
209				};
210			};
211		};
212	};
213};
214
215&pinctrl {
216	pmic {
217		pmic_int_l: pmic-int-l {
218		rockchip,pins =
219			<2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;	/* gpio2_a6 */
220		};
221	};
222};
223
224