sunxi: driver refresh for 3.13 - update gmac / mmc / usb / ahci drivers to follow...
[openwrt/openwrt.git] / target / linux / sunxi / files / arch / arm / boot / dts / sun7i-a20-cubietruck.dts
1 /*
2 * Copyright 2013 Oliver Schinagl
3 *
4 * Oliver Schinagl <oliver@schinagl.nl>
5 *
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14 /dts-v1/;
15 /include/ "sun7i-a20.dtsi"
16
17 / {
18 model = "Cubietech Cubietruck";
19 compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
20
21 soc@01c00000 {
22 pinctrl@01c20800 {
23 led_pins_cubietruck: led_pins@0 {
24 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
25 allwinner,function = "gpio_out";
26 allwinner,drive = <0>;
27 allwinner,pull = <0>;
28 };
29
30 usb1_vbus_pin: usb1_vbus_pin@0 {
31 allwinner,pins = "PH6";
32 allwinner,function = "gpio_out";
33 allwinner,drive = <0>;
34 allwinner,pull = <2>;
35 };
36
37 usb2_vbus_pin: usb2_vbus_pin@0 {
38 allwinner,pins = "PH3";
39 allwinner,function = "gpio_out";
40 allwinner,drive = <0>;
41 allwinner,pull = <2>;
42 };
43 };
44
45 uart0: serial@01c28000 {
46 pinctrl-names = "default";
47 pinctrl-0 = <&uart0_pins_a>;
48 status = "okay";
49 };
50 };
51
52 leds {
53 compatible = "gpio-leds";
54 pinctrl-names = "default";
55 pinctrl-0 = <&led_pins_cubietruck>;
56
57 blue {
58 label = "cubietruck:blue:usr";
59 gpios = <&pio 7 21 0>;
60 };
61
62 orange {
63 label = "cubietruck:orange:usr";
64 gpios = <&pio 7 20 0>;
65 };
66
67 white {
68 label = "cubietruck:white:usr";
69 gpios = <&pio 7 11 0>;
70 };
71
72 green {
73 label = "cubietruck:green:usr";
74 gpios = <&pio 7 7 0>;
75 };
76 };
77 };