blob: 3dd9d8196147926290d2e05ac749b12999c26455 [file] [log] [blame]
Kever Yange94ffee2017-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 Dongyang296bd192017-06-28 19:22:41 +080017
Kever Yangdf813322017-06-08 15:32:06 +080018 vcc3v3_sdmmc: sdmmc-pwren {
19 compatible = "regulator-fixed";
20 regulator-name = "vcc3v3";
21 gpio = <&gpio0 30 GPIO_ACTIVE_LOW>;
22 regulator-always-on;
23 regulator-boot-on;
24 };
25
Meng Dongyang863456a2017-06-28 19:22:45 +080026 vcc5v0_otg: vcc5v0-otg-drv {
27 compatible = "regulator-fixed";
28 enable-active-high;
29 regulator-name = "vcc5v0_otg";
30 gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>;
31 regulator-min-microvolt = <5000000>;
32 regulator-max-microvolt = <5000000>;
33 };
34
Meng Dongyang296bd192017-06-28 19:22:41 +080035 vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
36 compatible = "regulator-fixed";
37 enable-active-high;
38 regulator-name = "vcc5v0_host_xhci";
39 gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
40 regulator-min-microvolt = <5000000>;
41 regulator-max-microvolt = <5000000>;
42 };
Kever Yange94ffee2017-02-23 15:37:50 +080043};
44
David Wuf957dec2017-09-20 14:44:23 +080045&saradc {
46 status = "okay";
47};
48
Kever Yange94ffee2017-02-23 15:37:50 +080049&uart2 {
50 status = "okay";
51};
52
53&sdmmc {
54 bus-width = <4>;
55 cap-mmc-highspeed;
56 cap-sd-highspeed;
57 card-detect-delay = <200>;
58 disable-wp;
59 num-slots = <1>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>;
62 status = "okay";
63};
64
65&emmc {
66 bus-width = <8>;
67 cap-mmc-highspeed;
68 supports-emmc;
69 disable-wp;
70 non-removable;
71 num-slots = <1>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
74 status = "okay";
75};
Meng Dongyangef82a0d2017-05-17 18:21:46 +080076
77&usb_host0_ehci {
78 status = "okay";
79};
80
81&usb_host0_ohci {
82 status = "okay";
83};
Meng Dongyang75ff9182017-05-17 18:25:28 +080084
Meng Dongyang863456a2017-06-28 19:22:45 +080085&usb20_otg {
86 vbus-supply = <&vcc5v0_otg>;
87 status = "okay";
88};
89
Meng Dongyang75ff9182017-05-17 18:25:28 +080090&usb_host0_xhci {
Meng Dongyang296bd192017-06-28 19:22:41 +080091 vbus-supply = <&vcc5v0_host_xhci>;
Meng Dongyang75ff9182017-05-17 18:25:28 +080092 status = "okay";
93};
Elaine Zhangf9674f52017-09-27 15:23:38 +080094
95&i2c1 {
96 clock-frequency = <400000>;
97 i2c-scl-rising-time-ns = <168>;
98 i2c-scl-falling-time-ns = <4>;
99 status = "okay";
100
101 rk805: pmic@18 {
102 compatible = "rockchip,rk805";
103 status = "okay";
104 reg = <0x18>;
105 interrupt-parent = <&gpio2>;
106 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&pmic_int_l>;
109 rockchip,system-power-controller;
110 wakeup-source;
111 gpio-controller;
112 #gpio-cells = <2>;
113 #clock-cells = <1>;
114 clock-output-names = "xin32k", "rk805-clkout2";
115
116 regulators {
117 vdd_logic: DCDC_REG1 {
118 regulator-name = "vdd_logic";
119 regulator-min-microvolt = <712500>;
120 regulator-max-microvolt = <1450000>;
121 regulator-ramp-delay = <6001>;
122 regulator-boot-on;
123 regulator-always-on;
124 regulator-state-mem {
125 regulator-on-in-suspend;
126 regulator-suspend-microvolt = <1000000>;
127 };
128 };
129
130 vdd_arm: DCDC_REG2 {
131 regulator-name = "vdd_arm";
132 regulator-min-microvolt = <712500>;
133 regulator-max-microvolt = <1450000>;
134 regulator-ramp-delay = <6001>;
135 regulator-boot-on;
136 regulator-always-on;
137 regulator-state-mem {
138 regulator-on-in-suspend;
139 regulator-suspend-microvolt = <1000000>;
140 };
141 };
142
143 vcc_ddr: DCDC_REG3 {
144 regulator-name = "vcc_ddr";
145 regulator-boot-on;
146 regulator-always-on;
147 regulator-state-mem {
148 regulator-on-in-suspend;
149 };
150 };
151
152 vcc_io: DCDC_REG4 {
153 regulator-name = "vcc_io";
154 regulator-min-microvolt = <3300000>;
155 regulator-max-microvolt = <3300000>;
156 regulator-boot-on;
157 regulator-always-on;
158 regulator-state-mem {
159 regulator-on-in-suspend;
160 regulator-suspend-microvolt = <3300000>;
161 };
162 };
163
164 vdd_18: LDO_REG1 {
165 regulator-name = "vdd_18";
166 regulator-min-microvolt = <1800000>;
167 regulator-max-microvolt = <1800000>;
168 regulator-boot-on;
169 regulator-always-on;
170 regulator-state-mem {
171 regulator-on-in-suspend;
172 regulator-suspend-microvolt = <1800000>;
173 };
174 };
175
176 vcc_18emmc: LDO_REG2 {
177 regulator-name = "vcc_18emmc";
178 regulator-min-microvolt = <1800000>;
179 regulator-max-microvolt = <1800000>;
180 regulator-boot-on;
181 regulator-always-on;
182 regulator-state-mem {
183 regulator-on-in-suspend;
184 regulator-suspend-microvolt = <1800000>;
185 };
186 };
187
188 vdd_10: LDO_REG3 {
189 regulator-name = "vdd_10";
190 regulator-min-microvolt = <1000000>;
191 regulator-max-microvolt = <1000000>;
192 regulator-boot-on;
193 regulator-always-on;
194 regulator-state-mem {
195 regulator-on-in-suspend;
196 regulator-suspend-microvolt = <1000000>;
197 };
198 };
199 };
200 };
201};
202
203&pinctrl {
204 pmic {
205 pmic_int_l: pmic-int-l {
206 rockchip,pins =
207 <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio2_a6 */
208 };
209 };
210};
211