xref: /rk3399_rockchip-uboot/arch/arm/dts/rk3328-evb.dts (revision 75eb6fceb584d246c2b7cfac79b4fe43d0ec0ecd)
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#include <dt-bindings/input/input.h>
11
12/ {
13	model = "Rockchip RK3328 EVB";
14	compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
15
16	adc-keys {
17		status = "okay";
18
19		u-boot,dm-pre-reloc;
20		compatible = "adc-keys";
21		io-channels = <&saradc 0>;
22		io-channel-names = "buttons";
23		keyup-threshold-microvolt = <1800000>;
24
25		vol-up-key {
26			u-boot,dm-pre-reloc;
27			linux,code = <KEY_VOLUMEUP>;
28			label = "volume up";
29			press-threshold-microvolt = <10000>;
30		};
31	};
32
33	gmac_clkin: external-gmac-clock {
34		compatible = "fixed-clock";
35		clock-frequency = <125000000>;
36		clock-output-names = "gmac_clkin";
37		#clock-cells = <0>;
38	};
39
40	vcc3v3_sdmmc: sdmmc-pwren {
41		compatible = "regulator-fixed";
42		regulator-name = "vcc3v3";
43		gpio = <&gpio0 30 GPIO_ACTIVE_LOW>;
44		regulator-always-on;
45		regulator-boot-on;
46	};
47
48	vcc5v0_otg: vcc5v0-otg-drv {
49		compatible = "regulator-fixed";
50		enable-active-high;
51		regulator-name = "vcc5v0_otg";
52		gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>;
53		regulator-min-microvolt = <5000000>;
54		regulator-max-microvolt = <5000000>;
55	};
56
57	vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
58		compatible = "regulator-fixed";
59		enable-active-high;
60		regulator-name = "vcc5v0_host_xhci";
61		gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
62		regulator-min-microvolt = <5000000>;
63		regulator-max-microvolt = <5000000>;
64	};
65
66	vcc_phy: vcc-phy-regulator {
67		compatible = "regulator-fixed";
68		regulator-name = "vcc_phy";
69		regulator-always-on;
70		regulator-boot-on;
71	};
72};
73
74&uart2 {
75	status = "okay";
76};
77
78&sdmmc {
79	bus-width = <4>;
80	cap-mmc-highspeed;
81	cap-sd-highspeed;
82	card-detect-delay = <200>;
83	disable-wp;
84	num-slots = <1>;
85	pinctrl-names = "default";
86	pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>;
87	vmmc-supply = <&vcc3v3_sdmmc>;
88	status = "okay";
89};
90
91&emmc {
92	bus-width = <8>;
93	cap-mmc-highspeed;
94	supports-emmc;
95	disable-wp;
96	non-removable;
97	num-slots = <1>;
98	pinctrl-names = "default";
99	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
100	status = "okay";
101};
102
103&gmac2io {
104	phy-supply = <&vcc_phy>;
105	phy-mode = "rgmii";
106	clock_in_out = "input";
107	snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
108	snps,reset-active-low;
109	snps,reset-delays-us = <0 10000 50000>;
110	assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
111	assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
112	pinctrl-names = "default";
113	pinctrl-0 = <&rgmiim1_pins>;
114	tx_delay = <0x26>;
115	rx_delay = <0x11>;
116	status = "okay";
117};
118
119&u2phy {
120	status = "okay";
121};
122
123&u2phy_otg {
124	status = "okay";
125};
126
127&u2phy_host {
128	status = "okay";
129};
130
131&usb_host0_ehci {
132	vbus-supply = <&vcc5v0_otg>;
133	status = "okay";
134};
135
136&usb_host0_ohci {
137	status = "okay";
138};
139
140&usb20_otg {
141	vbus-supply = <&vcc5v0_otg>;
142	status = "okay";
143};
144
145&usb_host0_xhci {
146	vbus-supply = <&vcc5v0_host_xhci>;
147	status = "okay";
148};
149
150&i2c1 {
151	clock-frequency = <400000>;
152	i2c-scl-rising-time-ns = <168>;
153	i2c-scl-falling-time-ns = <4>;
154	status = "okay";
155
156	rk805: pmic@18 {
157		compatible = "rockchip,rk805";
158		status = "okay";
159		reg = <0x18>;
160		interrupt-parent = <&gpio2>;
161		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
162		pinctrl-names = "default";
163		pinctrl-0 = <&pmic_int_l>;
164		rockchip,system-power-controller;
165		wakeup-source;
166		gpio-controller;
167		#gpio-cells = <2>;
168		#clock-cells = <1>;
169		clock-output-names = "xin32k", "rk805-clkout2";
170
171		pwrkey {
172			status = "okay";
173		};
174
175		regulators {
176			vdd_logic: DCDC_REG1 {
177				regulator-name = "vdd_logic";
178				regulator-min-microvolt = <712500>;
179				regulator-max-microvolt = <1450000>;
180				regulator-ramp-delay = <6001>;
181				regulator-boot-on;
182				regulator-always-on;
183				regulator-state-mem {
184					regulator-on-in-suspend;
185					regulator-suspend-microvolt = <1000000>;
186				};
187			};
188
189			vdd_arm: DCDC_REG2 {
190				regulator-name = "vdd_arm";
191				regulator-min-microvolt = <712500>;
192				regulator-max-microvolt = <1450000>;
193				regulator-ramp-delay = <6001>;
194				regulator-boot-on;
195				regulator-always-on;
196				regulator-state-mem {
197					regulator-on-in-suspend;
198					regulator-suspend-microvolt = <1000000>;
199				};
200			};
201
202			vcc_ddr: DCDC_REG3 {
203				regulator-name = "vcc_ddr";
204				regulator-boot-on;
205				regulator-always-on;
206				regulator-state-mem {
207					regulator-on-in-suspend;
208				};
209			};
210
211			vcc_io: DCDC_REG4 {
212				regulator-name = "vcc_io";
213				regulator-min-microvolt = <3300000>;
214				regulator-max-microvolt = <3300000>;
215				regulator-boot-on;
216				regulator-always-on;
217				regulator-state-mem {
218					regulator-on-in-suspend;
219					regulator-suspend-microvolt = <3300000>;
220				};
221			};
222
223			vdd_18: LDO_REG1 {
224				regulator-name = "vdd_18";
225				regulator-min-microvolt = <1800000>;
226				regulator-max-microvolt = <1800000>;
227				regulator-boot-on;
228				regulator-always-on;
229				regulator-state-mem {
230					regulator-on-in-suspend;
231					regulator-suspend-microvolt = <1800000>;
232				};
233			};
234
235			vcc_18emmc: LDO_REG2 {
236				regulator-name = "vcc_18emmc";
237				regulator-min-microvolt = <1800000>;
238				regulator-max-microvolt = <1800000>;
239				regulator-boot-on;
240				regulator-always-on;
241				regulator-state-mem {
242					regulator-on-in-suspend;
243					regulator-suspend-microvolt = <1800000>;
244				};
245			};
246
247			vdd_10: LDO_REG3 {
248				regulator-name = "vdd_10";
249				regulator-min-microvolt = <1000000>;
250				regulator-max-microvolt = <1000000>;
251				regulator-boot-on;
252				regulator-always-on;
253				regulator-state-mem {
254					regulator-on-in-suspend;
255					regulator-suspend-microvolt = <1000000>;
256				};
257			};
258		};
259	};
260};
261
262&pinctrl {
263	pmic {
264		pmic_int_l: pmic-int-l {
265		rockchip,pins =
266			<2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;	/* gpio2_a6 */
267		};
268	};
269};
270
271