Merge branch 'async-scsi-resume' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / arch / arm / boot / dts / sun7i-a20-cubieboard2.dts
1 /*
2  * Copyright 2013 Maxime Ripard
3  *
4  * Maxime Ripard <maxime.ripard@free-electrons.com>
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 Cubieboard2";
20         compatible = "cubietech,cubieboard2", "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                         led_pins_cubieboard2: led_pins@0 {
52                                 allwinner,pins = "PH20", "PH21";
53                                 allwinner,function = "gpio_out";
54                                 allwinner,drive = <0>;
55                                 allwinner,pull = <0>;
56                         };
57                 };
58
59                 uart0: serial@01c28000 {
60                         pinctrl-names = "default";
61                         pinctrl-0 = <&uart0_pins_a>;
62                         status = "okay";
63                 };
64
65                 i2c0: i2c@01c2ac00 {
66                         pinctrl-names = "default";
67                         pinctrl-0 = <&i2c0_pins_a>;
68                         status = "okay";
69                 };
70
71                 i2c1: i2c@01c2b000 {
72                         pinctrl-names = "default";
73                         pinctrl-0 = <&i2c1_pins_a>;
74                         status = "okay";
75                 };
76
77                 gmac: ethernet@01c50000 {
78                         pinctrl-names = "default";
79                         pinctrl-0 = <&gmac_pins_mii_a>;
80                         phy = <&phy1>;
81                         phy-mode = "mii";
82                         status = "okay";
83
84                         phy1: ethernet-phy@1 {
85                                 reg = <1>;
86                         };
87                 };
88         };
89
90         leds {
91                 compatible = "gpio-leds";
92                 pinctrl-names = "default";
93                 pinctrl-0 = <&led_pins_cubieboard2>;
94
95                 blue {
96                         label = "cubieboard2:blue:usr";
97                         gpios = <&pio 7 21 0>;
98                 };
99
100                 green {
101                         label = "cubieboard2:green:usr";
102                         gpios = <&pio 7 20 0>;
103                 };
104         };
105
106         reg_ahci_5v: ahci-5v {
107                 status = "okay";
108         };
109
110         reg_usb1_vbus: usb1-vbus {
111                 status = "okay";
112         };
113
114         reg_usb2_vbus: usb2-vbus {
115                 status = "okay";
116         };
117 };