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