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