Merge branch 'pm-cpufreq'
[linux-2.6-block.git] / arch / arm / boot / dts / rk3288-evb.dtsi
CommitLineData
6ce0562a 1/*
cdcc8b6b
HS
2 * This file is dual-licensed: you can use it either under the terms
3 * of the GPL or the X11 license, at your option. Note that this dual
4 * licensing only applies to this file, and not this project as a
5 * whole.
6ce0562a 6 *
cdcc8b6b
HS
7 * a) This file is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * This file is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * Or, alternatively,
18 *
19 * b) Permission is hereby granted, free of charge, to any person
20 * obtaining a copy of this software and associated documentation
21 * files (the "Software"), to deal in the Software without
22 * restriction, including without limitation the rights to use,
23 * copy, modify, merge, publish, distribute, sublicense, and/or
24 * sell copies of the Software, and to permit persons to whom the
25 * Software is furnished to do so, subject to the following
26 * conditions:
27 *
28 * The above copyright notice and this permission notice shall be
29 * included in all copies or substantial portions of the Software.
30 *
31 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 * OTHER DEALINGS IN THE SOFTWARE.
6ce0562a
HS
39 */
40
0541f94f 41#include <dt-bindings/pwm/pwm.h>
6ce0562a
HS
42#include "rk3288.dtsi"
43
44/ {
45 memory {
6158e6d0 46 device_type = "memory";
6ce0562a
HS
47 reg = <0x0 0x80000000>;
48 };
49
0541f94f
DA
50 backlight {
51 compatible = "pwm-backlight";
52 brightness-levels = <
53 0 1 2 3 4 5 6 7
54 8 9 10 11 12 13 14 15
55 16 17 18 19 20 21 22 23
56 24 25 26 27 28 29 30 31
57 32 33 34 35 36 37 38 39
58 40 41 42 43 44 45 46 47
59 48 49 50 51 52 53 54 55
60 56 57 58 59 60 61 62 63
61 64 65 66 67 68 69 70 71
62 72 73 74 75 76 77 78 79
63 80 81 82 83 84 85 86 87
64 88 89 90 91 92 93 94 95
65 96 97 98 99 100 101 102 103
66 104 105 106 107 108 109 110 111
67 112 113 114 115 116 117 118 119
68 120 121 122 123 124 125 126 127
69 128 129 130 131 132 133 134 135
70 136 137 138 139 140 141 142 143
71 144 145 146 147 148 149 150 151
72 152 153 154 155 156 157 158 159
73 160 161 162 163 164 165 166 167
74 168 169 170 171 172 173 174 175
75 176 177 178 179 180 181 182 183
76 184 185 186 187 188 189 190 191
77 192 193 194 195 196 197 198 199
78 200 201 202 203 204 205 206 207
79 208 209 210 211 212 213 214 215
80 216 217 218 219 220 221 222 223
81 224 225 226 227 228 229 230 231
82 232 233 234 235 236 237 238 239
83 240 241 242 243 244 245 246 247
84 248 249 250 251 252 253 254 255>;
85 default-brightness-level = <128>;
86 enable-gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
87 pinctrl-names = "default";
88 pinctrl-0 = <&bl_en>;
89 pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>;
90 };
91
6ce0562a
HS
92 gpio-keys {
93 compatible = "gpio-keys";
94 #address-cells = <1>;
95 #size-cells = <0>;
96 autorepeat;
97
98 pinctrl-names = "default";
99 pinctrl-0 = <&pwrbtn>;
100
101 button@0 {
102 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
103 linux,code = <116>;
104 label = "GPIO Key Power";
105 linux,input-type = <1>;
106 gpio-key,wakeup = <1>;
107 debounce-interval = <100>;
108 };
109 };
83a742b4
DA
110
111 /* This turns on USB vbus for both host0 (ehci) and host1 (dwc2) */
112 vcc_host: vcc-host-regulator {
113 compatible = "regulator-fixed";
114 enable-active-high;
115 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&host_vbus_drv>;
118 regulator-name = "vcc_host";
119 regulator-always-on;
120 regulator-boot-on;
121 };
e35e47ac
RC
122
123 vcc_phy: vcc-phy-regulator {
124 compatible = "regulator-fixed";
125 enable-active-high;
126 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&eth_phy_pwr>;
129 regulator-name = "vcc_phy";
68c3a884
RP
130 regulator-min-microvolt = <3300000>;
131 regulator-max-microvolt = <3300000>;
e35e47ac
RC
132 regulator-always-on;
133 regulator-boot-on;
134 };
91d5cb73
HS
135
136 vcc_sys: vsys-regulator {
137 compatible = "regulator-fixed";
138 regulator-name = "vcc_sys";
139 regulator-min-microvolt = <5000000>;
140 regulator-max-microvolt = <5000000>;
141 regulator-always-on;
142 regulator-boot-on;
143 };
e565abe1
DA
144
145 /*
146 * NOTE: vcc_sd isn't hooked up on v1.0 boards where power comes from
147 * vcc_io directly. Those boards won't be able to power cycle SD cards
148 * but it shouldn't hurt to toggle this pin there anyway.
149 */
150 vcc_sd: sdmmc-regulator {
151 compatible = "regulator-fixed";
152 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&sdmmc_pwr>;
155 regulator-name = "vcc_sd";
156 regulator-min-microvolt = <3300000>;
157 regulator-max-microvolt = <3300000>;
158 startup-delay-us = <100000>;
159 vin-supply = <&vcc_io>;
160 };
6ce0562a
HS
161};
162
2c31d949
DA
163&emmc {
164 broken-cd;
165 bus-width = <8>;
166 cap-mmc-highspeed;
167 disable-wp;
168 non-removable;
169 num-slots = <1>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
172 status = "okay";
173};
174
863b76b2 175&hdmi {
c25d8cbc 176 ddc-i2c-bus = <&i2c5>;
863b76b2
HS
177 status = "okay";
178};
179
2c31d949
DA
180&sdmmc {
181 bus-width = <4>;
182 cap-mmc-highspeed;
183 cap-sd-highspeed;
184 card-detect-delay = <200>;
185 disable-wp; /* wp not hooked up */
186 num-slots = <1>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
189 status = "okay";
e565abe1
DA
190 vmmc-supply = <&vcc_sd>;
191 vqmmc-supply = <&vccio_sd>;
2c31d949
DA
192};
193
6ce0562a
HS
194&i2c0 {
195 status = "okay";
196};
197
863b76b2
HS
198&i2c5 {
199 status = "okay";
200};
201
6ce0562a
HS
202&wdt {
203 status = "okay";
204};
205
0541f94f
DA
206&pwm0 {
207 status = "okay";
208};
209
6ce0562a
HS
210&uart0 {
211 status = "okay";
212};
213
214&uart1 {
215 status = "okay";
216};
217
218&uart2 {
219 status = "okay";
220};
221
222&uart3 {
223 status = "okay";
224};
225
226&uart4 {
227 status = "okay";
228};
229
ff9d0ecb
CW
230&tsadc {
231 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
232 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
233 status = "okay";
234};
235
6ce0562a 236&pinctrl {
6618e478
DA
237 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
238 drive-strength = <8>;
239 };
240
241 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
242 bias-pull-up;
243 drive-strength = <8>;
244 };
245
0541f94f
DA
246 backlight {
247 bl_en: bl-en {
248 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
249 };
250 };
251
6ce0562a
HS
252 buttons {
253 pwrbtn: pwrbtn {
254 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
255 };
256 };
83a742b4 257
91ff8cd8
DA
258 pmic {
259 pmic_int: pmic-int {
260 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
261 };
262 };
263
6618e478
DA
264 sdmmc {
265 /*
266 * Default drive strength isn't enough to achieve even
267 * high-speed mode on EVB board so bump up to 8ma.
268 */
269 sdmmc_bus4: sdmmc-bus4 {
270 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
271 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
272 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
273 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
274 };
275
276 sdmmc_clk: sdmmc-clk {
277 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
278 };
279
280 sdmmc_cmd: sdmmc-cmd {
281 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
282 };
e565abe1
DA
283
284 sdmmc_pwr: sdmmc-pwr {
285 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
286 };
6618e478
DA
287 };
288
83a742b4
DA
289 usb {
290 host_vbus_drv: host-vbus-drv {
291 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
292 };
293 };
e35e47ac
RC
294
295 eth_phy {
296 eth_phy_pwr: eth-phy-pwr {
297 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
298 };
299 };
6ce0562a 300};
163cb917 301
e537c9cc
YL
302&usbphy {
303 status = "okay";
304};
305
163cb917
DA
306&usb_host0_ehci {
307 status = "okay";
308};
ddf8303f
KY
309
310&usb_host1 {
311 status = "okay";
312};
863b76b2
HS
313
314&vopb {
315 status = "okay";
316};
317
318&vopb_mmu {
319 status = "okay";
320};
321
322&vopl {
323 status = "okay";
324};
325
326&vopl_mmu {
327 status = "okay";
328};