2 * Copyright 2013 Oliver Schinagl
4 * Oliver Schinagl <oliver@schinagl.nl>
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:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
15 /include/ "sun7i-a20.dtsi"
16 /include/ "sunxi-common-regulators.dtsi"
19 model = "Cubietech Cubietruck";
20 compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
23 usbphy: phy@01c13400 {
24 usb1_vbus-supply = <®_usb1_vbus>;
25 usb2_vbus-supply = <®_usb2_vbus>;
38 target-supply = <®_ahci_5v>;
51 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
52 allwinner,pins = "PH12";
53 allwinner,function = "gpio_out";
54 allwinner,drive = <0>;
58 led_pins_cubietruck: led_pins@0 {
59 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
60 allwinner,function = "gpio_out";
61 allwinner,drive = <0>;
66 uart0: serial@01c28000 {
67 pinctrl-names = "default";
68 pinctrl-0 = <&uart0_pins_a>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&i2c0_pins_a>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&i2c1_pins_a>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&i2c2_pins_a>;
90 gmac: ethernet@01c50000 {
91 pinctrl-names = "default";
92 pinctrl-0 = <&gmac_pins_rgmii_a>;
97 phy1: ethernet-phy@1 {
104 compatible = "gpio-leds";
105 pinctrl-names = "default";
106 pinctrl-0 = <&led_pins_cubietruck>;
109 label = "cubietruck:blue:usr";
110 gpios = <&pio 7 21 0>;
114 label = "cubietruck:orange:usr";
115 gpios = <&pio 7 20 0>;
119 label = "cubietruck:white:usr";
120 gpios = <&pio 7 11 0>;
124 label = "cubietruck:green:usr";
125 gpios = <&pio 7 7 0>;
129 reg_ahci_5v: ahci-5v {
130 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
131 gpio = <&pio 7 12 0>;
135 reg_usb1_vbus: usb1-vbus {
139 reg_usb2_vbus: usb2-vbus {