ARM: dts: armada388-clearfog: enable spi flash
[linux-2.6-block.git] / arch / arm / boot / dts / rk3188-radxarock.dts
CommitLineData
6bcf60f8
HS
1/*
2 * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
3 *
e068f498
HS
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
6bcf60f8 8 *
e068f498
HS
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
6bcf60f8
HS
41 */
42
43/dts-v1/;
8b30c899 44#include <dt-bindings/input/input.h>
6bcf60f8
HS
45#include "rk3188.dtsi"
46
47/ {
48 model = "Radxa Rock";
ac4eba8e 49 compatible = "radxa,rock", "rockchip,rk3188";
6bcf60f8 50
adc9e3a6 51 memory@60000000 {
6158e6d0 52 device_type = "memory";
6bcf60f8
HS
53 reg = <0x60000000 0x80000000>;
54 };
55
c3030d30
HS
56 gpio-keys {
57 compatible = "gpio-keys";
c3030d30 58 autorepeat;
6bcf60f8 59
8b30c899 60 power {
e9e79d53 61 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
8b30c899 62 linux,code = <KEY_POWER>;
c3030d30
HS
63 label = "GPIO Key Power";
64 linux,input-type = <1>;
4f66f247 65 wakeup-source;
c3030d30 66 debounce-interval = <100>;
6bcf60f8 67 };
c3030d30 68 };
6bcf60f8 69
c3030d30
HS
70 gpio-leds {
71 compatible = "gpio-leds";
6bcf60f8 72
c3030d30 73 green {
3db5894b 74 label = "rock:green:user1";
e9e79d53 75 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_LOW>;
c3030d30
HS
76 default-state = "off";
77 };
6bcf60f8 78
3db5894b
RP
79 blue {
80 label = "rock:blue:user2";
e9e79d53 81 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
c3030d30 82 default-state = "off";
6bcf60f8
HS
83 };
84
c3030d30 85 sleep {
3db5894b 86 label = "rock:red:power";
e9e79d53 87 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
c3030d30
HS
88 default-state = "off";
89 };
6bcf60f8 90 };
b09e35a3 91
d97e862e
SS
92 sound {
93 compatible = "simple-audio-card";
94 simple-audio-card,name = "SPDIF";
95
96 simple-audio-card,dai-link@1 { /* S/PDIF - S/PDIF */
97 cpu { sound-dai = <&spdif>; };
98 codec { sound-dai = <&spdif_out>; };
99 };
100 };
101
102 spdif_out: spdif-out {
103 compatible = "linux,spdif-dit";
104 #sound-dai-cells = <0>;
105 };
106
08567053
BG
107 ir_recv: gpio-ir-receiver {
108 compatible = "gpio-ir-receiver";
e9e79d53 109 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
08567053
BG
110 pinctrl-names = "default";
111 pinctrl-0 = <&ir_recv_pin>;
112 };
113
f1c8547f
HS
114 vcc_otg: usb-otg-regulator {
115 compatible = "regulator-fixed";
116 enable-active-high;
e9e79d53 117 gpio = <&gpio2 RK_PD7 GPIO_ACTIVE_HIGH>;
f1c8547f 118 pinctrl-names = "default";
66fa6cf2 119 pinctrl-0 = <&otg_vbus_drv>;
f1c8547f
HS
120 regulator-name = "otg-vbus";
121 regulator-min-microvolt = <5000000>;
122 regulator-max-microvolt = <5000000>;
123 regulator-always-on;
124 regulator-boot-on;
125 };
126
b09e35a3
HS
127 vcc_sd0: sdmmc-regulator {
128 compatible = "regulator-fixed";
129 regulator-name = "sdmmc-supply";
130 regulator-min-microvolt = <3300000>;
131 regulator-max-microvolt = <3300000>;
e9e79d53 132 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
b09e35a3
HS
133 startup-delay-us = <100000>;
134 vin-supply = <&vcc_io>;
135 };
f1c8547f
HS
136
137 vcc_host: usb-host-regulator {
138 compatible = "regulator-fixed";
139 enable-active-high;
e9e79d53 140 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
f1c8547f 141 pinctrl-names = "default";
66fa6cf2 142 pinctrl-0 = <&host_vbus_drv>;
f1c8547f
HS
143 regulator-name = "host-pwr";
144 regulator-min-microvolt = <5000000>;
145 regulator-max-microvolt = <5000000>;
146 regulator-always-on;
147 regulator-boot-on;
148 };
776920e1
HS
149
150 vsys: vsys-regulator {
151 compatible = "regulator-fixed";
152 regulator-name = "vsys";
153 regulator-min-microvolt = <5000000>;
154 regulator-max-microvolt = <5000000>;
155 regulator-boot-on;
156 };
6bcf60f8 157};
fcbbf965 158
c6ec956b
RP
159&emac {
160 status = "okay";
161
162 pinctrl-names = "default";
163 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
164
165 phy = <&phy0>;
166 phy-supply = <&vcc_rmii>;
167
168 phy0: ethernet-phy@0 {
169 reg = <0>;
170 interrupt-parent = <&gpio3>;
e9e79d53 171 interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
c6ec956b
RP
172 };
173};
174
3adb1327
HS
175&cpu0 {
176 cpu0-supply = <&vdd_arm>;
177};
178
0a660487
HS
179&gpu {
180 status = "okay";
181};
182
fe2c89af
BG
183&i2c1 {
184 status = "okay";
185 clock-frequency = <400000>;
186
4721ab85
HS
187 rtc@51 {
188 compatible = "haoyu,hym8563";
189 reg = <0x51>;
190 interrupt-parent = <&gpio0>;
e9e79d53 191 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
4721ab85
HS
192 pinctrl-names = "default";
193 pinctrl-0 = <&rtc_int>;
194 #clock-cells = <0>;
195 clock-output-names = "xin32k";
196 };
197
fe2c89af
BG
198 act8846: act8846@5a {
199 compatible = "active-semi,act8846";
200 reg = <0x5a>;
201 status = "okay";
9ab79be0 202 system-power-controller;
fe2c89af
BG
203
204 pinctrl-names = "default";
205 pinctrl-0 = <&act8846_dvs0_ctl>;
206
776920e1
HS
207 vp1-supply = <&vsys>;
208 vp2-supply = <&vsys>;
209 vp3-supply = <&vsys>;
210 vp4-supply = <&vsys>;
211 inl1-supply = <&vcc_io>;
212 inl2-supply = <&vsys>;
213 inl3-supply = <&vsys>;
214
fe2c89af
BG
215 regulators {
216 vcc_ddr: REG1 {
217 regulator-name = "VCC_DDR";
218 regulator-min-microvolt = <1200000>;
219 regulator-max-microvolt = <1200000>;
220 regulator-always-on;
221 };
222
223 vdd_log: REG2 {
224 regulator-name = "VDD_LOG";
225 regulator-min-microvolt = <1000000>;
226 regulator-max-microvolt = <1000000>;
227 regulator-always-on;
228 };
229
230 vdd_arm: REG3 {
231 regulator-name = "VDD_ARM";
232 regulator-min-microvolt = <875000>;
3adb1327 233 regulator-max-microvolt = <1350000>;
fe2c89af
BG
234 regulator-always-on;
235 };
236
237 vcc_io: REG4 {
238 regulator-name = "VCC_IO";
239 regulator-min-microvolt = <3300000>;
240 regulator-max-microvolt = <3300000>;
241 regulator-always-on;
242 };
243
244 vdd_10: REG5 {
245 regulator-name = "VDD_10";
246 regulator-min-microvolt = <1000000>;
247 regulator-max-microvolt = <1000000>;
248 regulator-always-on;
249 };
250
251 vdd_hdmi: REG6 {
252 regulator-name = "VDD_HDMI";
253 regulator-min-microvolt = <2500000>;
254 regulator-max-microvolt = <2500000>;
255 regulator-always-on;
256 };
257
258 vcc18: REG7 {
259 regulator-name = "VCC_18";
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
262 regulator-always-on;
263 };
264
265 vcca_33: REG8 {
266 regulator-name = "VCCA_33";
267 regulator-min-microvolt = <3300000>;
268 regulator-max-microvolt = <3300000>;
269 regulator-always-on;
270 };
271
272 vcc_rmii: REG9 {
273 regulator-name = "VCC_RMII";
274 regulator-min-microvolt = <3300000>;
275 regulator-max-microvolt = <3300000>;
fe2c89af
BG
276 };
277
278 vccio_wl: REG10 {
279 regulator-name = "VCCIO_WL";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
282 regulator-always-on;
283 };
284
285 vcc_18: REG11 {
286 regulator-name = "VCC18_IO";
287 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <1800000>;
289 regulator-always-on;
290 };
291
292 vcc28: REG12 {
293 regulator-name = "VCC_28";
294 regulator-min-microvolt = <2800000>;
295 regulator-max-microvolt = <2800000>;
296 regulator-always-on;
297 };
298 };
299 };
300};
301
b09e35a3 302&mmc0 {
b09e35a3 303 status = "okay";
1302d32c
HS
304 pinctrl-names = "default";
305 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
b09e35a3
HS
306 vmmc-supply = <&vcc_sd0>;
307
356649ab 308 bus-width = <4>;
2a4527ff
SL
309 cap-mmc-highspeed;
310 cap-sd-highspeed;
356649ab 311 disable-wp;
b09e35a3
HS
312};
313
efb66e93
JC
314&pwm1 {
315 status = "okay";
316};
317
318&pwm2 {
319 status = "okay";
320};
321
322&pwm3 {
323 status = "okay";
324};
325
fe2c89af
BG
326&pinctrl {
327 pcfg_output_low: pcfg-output-low {
328 output-low;
329 };
330
331 act8846 {
332 act8846_dvs0_ctl: act8846-dvs0-ctl {
333 rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
334 };
335 };
08567053 336
4721ab85
HS
337 hym8563 {
338 rtc_int: rtc-int {
339 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
340 };
341 };
342
c6ec956b
RP
343 lan8720a {
344 phy_int: phy-int {
345 rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
346 };
347 };
348
08567053
BG
349 ir-receiver {
350 ir_recv_pin: ir-recv-pin {
351 rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
352 };
353 };
f1c8547f
HS
354
355 usb {
356 host_vbus_drv: host-vbus-drv {
357 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
358 };
359 otg_vbus_drv: otg-vbus-drv {
360 rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
361 };
362 };
fe2c89af
BG
363};
364
d97e862e
SS
365&spdif {
366 status = "okay";
367};
368
fcbbf965
HS
369&uart0 {
370 status = "okay";
371};
372
373&uart1 {
374 status = "okay";
375};
376
377&uart2 {
fcbbf965
HS
378 status = "okay";
379};
380
381&uart3 {
382 status = "okay";
383};
eb2b9d47 384
760bb977
HS
385&usbphy {
386 status = "okay";
387};
388
f1c8547f
HS
389&usb_host {
390 status = "okay";
391};
392
393&usb_otg {
394 status = "okay";
395};
396
eb2b9d47
HS
397&wdt {
398 status = "okay";
399};