xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/rk3328-evb.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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	vcc_host_vbus: host-vbus-regulator {
58		compatible = "regulator-fixed";
59		enable-active-high;
60		regulator-name = "vcc_host_vbus";
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&gmac2phy {
124	phy-supply = <&vcc_phy>;
125	clock_in_out = "output";
126	assigned-clocks = <&cru SCLK_MAC2PHY_SRC>;
127	assigned-clock-rate = <50000000>;
128	assigned-clocks = <&cru SCLK_MAC2PHY>;
129	assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>;
130	status = "okay";
131};
132
133&u2phy {
134	status = "okay";
135};
136
137&u2phy_otg {
138	status = "okay";
139};
140
141&u2phy_host {
142	status = "okay";
143};
144
145&u3phy {
146	vbus-supply = <&vcc_host_vbus>;
147	status = "okay";
148};
149
150&u3phy_utmi {
151	status = "okay";
152};
153
154&u3phy_pipe {
155	status = "okay";
156};
157
158&usb_host0_ehci {
159	vbus-supply = <&vcc5v0_otg>;
160	status = "okay";
161};
162
163&usb_host0_ohci {
164	status = "okay";
165};
166
167&usb20_otg {
168	vbus-supply = <&vcc5v0_otg>;
169	status = "okay";
170};
171
172&usbdrd3 {
173	status = "okay";
174};
175
176&usbdrd_dwc3 {
177	status = "okay";
178};
179
180&i2c1 {
181	clock-frequency = <400000>;
182	i2c-scl-rising-time-ns = <168>;
183	i2c-scl-falling-time-ns = <4>;
184	status = "okay";
185
186	rk805: pmic@18 {
187		compatible = "rockchip,rk805";
188		status = "okay";
189		reg = <0x18>;
190		interrupt-parent = <&gpio2>;
191		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
192		pinctrl-names = "default";
193		pinctrl-0 = <&pmic_int_l>;
194		rockchip,system-power-controller;
195		wakeup-source;
196		gpio-controller;
197		#gpio-cells = <2>;
198		#clock-cells = <1>;
199		clock-output-names = "xin32k", "rk805-clkout2";
200
201		pwrkey {
202			status = "okay";
203		};
204
205		regulators {
206			vdd_logic: DCDC_REG1 {
207				regulator-name = "vdd_logic";
208				regulator-min-microvolt = <712500>;
209				regulator-max-microvolt = <1450000>;
210				regulator-ramp-delay = <6001>;
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			vdd_arm: DCDC_REG2 {
220				regulator-name = "vdd_arm";
221				regulator-min-microvolt = <712500>;
222				regulator-max-microvolt = <1450000>;
223				regulator-ramp-delay = <6001>;
224				regulator-boot-on;
225				regulator-always-on;
226				regulator-state-mem {
227					regulator-on-in-suspend;
228					regulator-suspend-microvolt = <1000000>;
229				};
230			};
231
232			vcc_ddr: DCDC_REG3 {
233				regulator-name = "vcc_ddr";
234				regulator-boot-on;
235				regulator-always-on;
236				regulator-state-mem {
237					regulator-on-in-suspend;
238				};
239			};
240
241			vcc_io: DCDC_REG4 {
242				regulator-name = "vcc_io";
243				regulator-min-microvolt = <3300000>;
244				regulator-max-microvolt = <3300000>;
245				regulator-boot-on;
246				regulator-always-on;
247				regulator-state-mem {
248					regulator-on-in-suspend;
249					regulator-suspend-microvolt = <3300000>;
250				};
251			};
252
253			vdd_18: LDO_REG1 {
254				regulator-name = "vdd_18";
255				regulator-min-microvolt = <1800000>;
256				regulator-max-microvolt = <1800000>;
257				regulator-boot-on;
258				regulator-always-on;
259				regulator-state-mem {
260					regulator-on-in-suspend;
261					regulator-suspend-microvolt = <1800000>;
262				};
263			};
264
265			vcc_18emmc: LDO_REG2 {
266				regulator-name = "vcc_18emmc";
267				regulator-min-microvolt = <1800000>;
268				regulator-max-microvolt = <1800000>;
269				regulator-boot-on;
270				regulator-always-on;
271				regulator-state-mem {
272					regulator-on-in-suspend;
273					regulator-suspend-microvolt = <1800000>;
274				};
275			};
276
277			vdd_10: LDO_REG3 {
278				regulator-name = "vdd_10";
279				regulator-min-microvolt = <1000000>;
280				regulator-max-microvolt = <1000000>;
281				regulator-boot-on;
282				regulator-always-on;
283				regulator-state-mem {
284					regulator-on-in-suspend;
285					regulator-suspend-microvolt = <1000000>;
286				};
287			};
288		};
289	};
290};
291
292&pinctrl {
293	pmic {
294		pmic_int_l: pmic-int-l {
295		rockchip,pins =
296			<2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;	/* gpio2_a6 */
297		};
298	};
299};
300
301