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