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