xref: /rk3399_rockchip-uboot/arch/arm/dts/rk3328-evb.dts (revision 73b4df6a98d2d973cbf1e2b18947abbdbdb82bc1)
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&crypto {
92	status = "okay";
93};
94
95&emmc {
96	bus-width = <8>;
97	cap-mmc-highspeed;
98	supports-emmc;
99	disable-wp;
100	non-removable;
101	num-slots = <1>;
102	pinctrl-names = "default";
103	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
104	status = "okay";
105};
106
107&gmac2io {
108	phy-supply = <&vcc_phy>;
109	phy-mode = "rgmii";
110	clock_in_out = "input";
111	snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
112	snps,reset-active-low;
113	snps,reset-delays-us = <0 10000 50000>;
114	assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
115	assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
116	pinctrl-names = "default";
117	pinctrl-0 = <&rgmiim1_pins>;
118	tx_delay = <0x26>;
119	rx_delay = <0x11>;
120	status = "okay";
121};
122
123&u2phy {
124	status = "okay";
125};
126
127&u2phy_otg {
128	status = "okay";
129};
130
131&u2phy_host {
132	status = "okay";
133};
134
135&usb_host0_ehci {
136	vbus-supply = <&vcc5v0_otg>;
137	status = "okay";
138};
139
140&usb_host0_ohci {
141	status = "okay";
142};
143
144&usb20_otg {
145	vbus-supply = <&vcc5v0_otg>;
146	status = "okay";
147};
148
149&usb_host0_xhci {
150	vbus-supply = <&vcc5v0_host_xhci>;
151	status = "okay";
152};
153
154&i2c1 {
155	clock-frequency = <400000>;
156	i2c-scl-rising-time-ns = <168>;
157	i2c-scl-falling-time-ns = <4>;
158	status = "okay";
159
160	rk805: pmic@18 {
161		compatible = "rockchip,rk805";
162		status = "okay";
163		reg = <0x18>;
164		interrupt-parent = <&gpio2>;
165		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
166		pinctrl-names = "default";
167		pinctrl-0 = <&pmic_int_l>;
168		rockchip,system-power-controller;
169		wakeup-source;
170		gpio-controller;
171		#gpio-cells = <2>;
172		#clock-cells = <1>;
173		clock-output-names = "xin32k", "rk805-clkout2";
174
175		pwrkey {
176			status = "okay";
177		};
178
179		regulators {
180			vdd_logic: DCDC_REG1 {
181				regulator-name = "vdd_logic";
182				regulator-min-microvolt = <712500>;
183				regulator-max-microvolt = <1450000>;
184				regulator-ramp-delay = <6001>;
185				regulator-boot-on;
186				regulator-always-on;
187				regulator-state-mem {
188					regulator-on-in-suspend;
189					regulator-suspend-microvolt = <1000000>;
190				};
191			};
192
193			vdd_arm: DCDC_REG2 {
194				regulator-name = "vdd_arm";
195				regulator-min-microvolt = <712500>;
196				regulator-max-microvolt = <1450000>;
197				regulator-ramp-delay = <6001>;
198				regulator-boot-on;
199				regulator-always-on;
200				regulator-state-mem {
201					regulator-on-in-suspend;
202					regulator-suspend-microvolt = <1000000>;
203				};
204			};
205
206			vcc_ddr: DCDC_REG3 {
207				regulator-name = "vcc_ddr";
208				regulator-boot-on;
209				regulator-always-on;
210				regulator-state-mem {
211					regulator-on-in-suspend;
212				};
213			};
214
215			vcc_io: DCDC_REG4 {
216				regulator-name = "vcc_io";
217				regulator-min-microvolt = <3300000>;
218				regulator-max-microvolt = <3300000>;
219				regulator-boot-on;
220				regulator-always-on;
221				regulator-state-mem {
222					regulator-on-in-suspend;
223					regulator-suspend-microvolt = <3300000>;
224				};
225			};
226
227			vdd_18: LDO_REG1 {
228				regulator-name = "vdd_18";
229				regulator-min-microvolt = <1800000>;
230				regulator-max-microvolt = <1800000>;
231				regulator-boot-on;
232				regulator-always-on;
233				regulator-state-mem {
234					regulator-on-in-suspend;
235					regulator-suspend-microvolt = <1800000>;
236				};
237			};
238
239			vcc_18emmc: LDO_REG2 {
240				regulator-name = "vcc_18emmc";
241				regulator-min-microvolt = <1800000>;
242				regulator-max-microvolt = <1800000>;
243				regulator-boot-on;
244				regulator-always-on;
245				regulator-state-mem {
246					regulator-on-in-suspend;
247					regulator-suspend-microvolt = <1800000>;
248				};
249			};
250
251			vdd_10: LDO_REG3 {
252				regulator-name = "vdd_10";
253				regulator-min-microvolt = <1000000>;
254				regulator-max-microvolt = <1000000>;
255				regulator-boot-on;
256				regulator-always-on;
257				regulator-state-mem {
258					regulator-on-in-suspend;
259					regulator-suspend-microvolt = <1000000>;
260				};
261			};
262		};
263	};
264};
265
266&pinctrl {
267	pmic {
268		pmic_int_l: pmic-int-l {
269		rockchip,pins =
270			<2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;	/* gpio2_a6 */
271		};
272	};
273};
274
275