Merge branch 'async-scsi-resume' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / 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 /include/ "sunxi-common-regulators.dtsi"
17
18 / {
19         model = "Cubietech Cubietruck";
20         compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
21
22         soc@01c00000 {
23                 usbphy: phy@01c13400 {
24                         usb1_vbus-supply = <&reg_usb1_vbus>;
25                         usb2_vbus-supply = <&reg_usb2_vbus>;
26                         status = "okay";
27                 };
28
29                 ehci0: usb@01c14000 {
30                         status = "okay";
31                 };
32
33                 ohci0: usb@01c14400 {
34                         status = "okay";
35                 };
36
37                 ahci: sata@01c18000 {
38                         target-supply = <&reg_ahci_5v>;
39                         status = "okay";
40                 };
41
42                 ehci1: usb@01c1c000 {
43                         status = "okay";
44                 };
45
46                 ohci1: usb@01c1c400 {
47                         status = "okay";
48                 };
49
50                 pinctrl@01c20800 {
51                         ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
52                                 allwinner,pins = "PH12";
53                                 allwinner,function = "gpio_out";
54                                 allwinner,drive = <0>;
55                                 allwinner,pull = <0>;
56                         };
57
58                         led_pins_cubietruck: led_pins@0 {
59                                 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
60                                 allwinner,function = "gpio_out";
61                                 allwinner,drive = <0>;
62                                 allwinner,pull = <0>;
63                         };
64                 };
65
66                 uart0: serial@01c28000 {
67                         pinctrl-names = "default";
68                         pinctrl-0 = <&uart0_pins_a>;
69                         status = "okay";
70                 };
71
72                 i2c0: i2c@01c2ac00 {
73                         pinctrl-names = "default";
74                         pinctrl-0 = <&i2c0_pins_a>;
75                         status = "okay";
76                 };
77
78                 i2c1: i2c@01c2b000 {
79                         pinctrl-names = "default";
80                         pinctrl-0 = <&i2c1_pins_a>;
81                         status = "okay";
82                 };
83
84                 i2c2: i2c@01c2b400 {
85                         pinctrl-names = "default";
86                         pinctrl-0 = <&i2c2_pins_a>;
87                         status = "okay";
88                 };
89
90                 gmac: ethernet@01c50000 {
91                         pinctrl-names = "default";
92                         pinctrl-0 = <&gmac_pins_rgmii_a>;
93                         phy = <&phy1>;
94                         phy-mode = "rgmii";
95                         status = "okay";
96
97                         phy1: ethernet-phy@1 {
98                                 reg = <1>;
99                         };
100                 };
101         };
102
103         leds {
104                 compatible = "gpio-leds";
105                 pinctrl-names = "default";
106                 pinctrl-0 = <&led_pins_cubietruck>;
107
108                 blue {
109                         label = "cubietruck:blue:usr";
110                         gpios = <&pio 7 21 0>;
111                 };
112
113                 orange {
114                         label = "cubietruck:orange:usr";
115                         gpios = <&pio 7 20 0>;
116                 };
117
118                 white {
119                         label = "cubietruck:white:usr";
120                         gpios = <&pio 7 11 0>;
121                 };
122
123                 green {
124                         label = "cubietruck:green:usr";
125                         gpios = <&pio 7 7 0>;
126                 };
127         };
128
129         reg_ahci_5v: ahci-5v {
130                 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
131                 gpio = <&pio 7 12 0>;
132                 status = "okay";
133         };
134
135         reg_usb1_vbus: usb1-vbus {
136                 status = "okay";
137         };
138
139         reg_usb2_vbus: usb2-vbus {
140                 status = "okay";
141         };
142 };