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