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"
18 model = "Cubietech Cubietruck";
19 compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
23 pinctrl-names = "default";
24 pinctrl-0 = <&sdc0_pins_a>;
25 pinctrl-1 = <&mmc0_cd_pin_cubietruck>;
26 cd-gpios = <&pio 7 1 0>; /* PH1 */
31 ehci0: ehci0@0x01c14000 {
32 vbus-supply = <®_usb1_vbus>;
37 pwr-supply = <®_ahci_5v>;
41 ehci1: ehci1@0x01c1c000 {
42 vbus-supply = <®_usb2_vbus>;
47 mmc0_cd_pin_cubietruck: mmc0_cd_pin@0 {
48 allwinner,pins = "PH1";
49 allwinner,function = "gpio_in";
50 allwinner,drive = <0>;
54 ahci_pwr_pin_cubietruck: ahci_pwr_pin@0 {
55 allwinner,pins = "PH12";
56 allwinner,function = "gpio_out";
57 allwinner,drive = <0>;
61 led_pins_cubietruck: led_pins@0 {
62 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
63 allwinner,function = "gpio_out";
64 allwinner,drive = <0>;
68 usb1_vbus_pin: usb1_vbus_pin@0 {
69 allwinner,pins = "PH6";
70 allwinner,function = "gpio_out";
71 allwinner,drive = <0>;
75 usb2_vbus_pin: usb2_vbus_pin@0 {
76 allwinner,pins = "PH3";
77 allwinner,function = "gpio_out";
78 allwinner,drive = <0>;
83 uart0: serial@01c28000 {
84 pinctrl-names = "default";
85 pinctrl-0 = <&uart0_pins_a>;
91 compatible = "gpio-leds";
92 pinctrl-names = "default";
93 pinctrl-0 = <&led_pins_cubietruck>;
96 label = "cubietruck:blue:usr";
97 gpios = <&pio 7 21 0>;
101 label = "cubietruck:orange:usr";
102 gpios = <&pio 7 20 0>;
106 label = "cubietruck:white:usr";
107 gpios = <&pio 7 11 0>;
111 label = "cubietruck:green:usr";
112 gpios = <&pio 7 7 0>;
117 compatible = "simple-bus";
118 pinctrl-names = "default";
120 reg_ahci_5v: ahci-5v {
121 compatible = "regulator-fixed";
122 regulator-name = "ahci-5v";
123 regulator-min-microvolt = <5000000>;
124 regulator-max-microvolt = <5000000>;
125 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
126 gpio = <&pio 7 12 0>;
130 reg_usb1_vbus: usb1-vbus {
131 compatible = "regulator-fixed";
132 pinctrl-names = "default";
133 pinctrl-0 = <&usb1_vbus_pin>;
134 regulator-name = "usb1-vbus";
135 regulator-min-microvolt = <5000000>;
136 regulator-max-microvolt = <5000000>;
141 reg_usb2_vbus: usb2-vbus {
142 compatible = "regulator-fixed";
143 pinctrl-names = "default";
144 pinctrl-0 = <&usb2_vbus_pin>;
145 regulator-name = "usb2-vbus";
146 regulator-min-microvolt = <5000000>;
147 regulator-max-microvolt = <5000000>;