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