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";
24 pinctrl-names = "default";
25 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
26 vmmc-supply = <®_vcc3v3>;
28 cd-gpios = <&pio 7 1 0>; /* PH1 */
34 pinctrl-names = "default";
35 pinctrl-0 = <&mmc3_pins_a>;
36 vmmc-supply = <®_vmmc3>;
42 usbphy: phy@01c13400 {
43 usb0_vbus-supply = <®_usb0_vbus>;
44 usb1_vbus-supply = <®_usb1_vbus>;
45 usb2_vbus-supply = <®_usb2_vbus>;
58 target-supply = <®_ahci_5v>;
72 /* AP6210 requires pull-up */
76 vmmc3_pin_cubietruck: vmmc3_pin@0 {
77 allwinner,pins = "PH9";
78 allwinner,function = "gpio_out";
79 allwinner,drive = <0>;
83 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
84 allwinner,pins = "PH12";
85 allwinner,function = "gpio_out";
86 allwinner,drive = <0>;
90 led_pins_cubietruck: led_pins@0 {
91 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
92 allwinner,function = "gpio_out";
93 allwinner,drive = <0>;
97 usb0_vbus_pin_a: usb0_vbus_pin@0 {
98 allwinner,pins = "PH17";
99 allwinner,function = "gpio_out";
100 allwinner,drive = <0>;
101 allwinner,pull = <0>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&ir0_pins_a>;
117 uart0: serial@01c28000 {
118 pinctrl-names = "default";
119 pinctrl-0 = <&uart0_pins_a>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&i2c0_pins_a>;
129 compatible = "x-powers,axp209";
131 interrupt-parent = <&nmi_intc>;
134 interrupt-controller;
135 #interrupt-cells = <1>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&i2c1_pins_a>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&i2c2_pins_a>;
151 gmac: ethernet@01c50000 {
152 pinctrl-names = "default";
153 pinctrl-0 = <&gmac_pins_rgmii_a>;
158 phy1: ethernet-phy@1 {
165 compatible = "gpio-leds";
166 pinctrl-names = "default";
167 pinctrl-0 = <&led_pins_cubietruck>;
170 label = "cubietruck:blue:usr";
171 gpios = <&pio 7 21 0>;
175 label = "cubietruck:orange:usr";
176 gpios = <&pio 7 20 0>;
180 label = "cubietruck:white:usr";
181 gpios = <&pio 7 11 0>;
185 label = "cubietruck:green:usr";
186 gpios = <&pio 7 7 0>;
190 reg_ahci_5v: ahci-5v {
191 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
192 gpio = <&pio 7 12 0>;
196 reg_usb0_vbus: usb0-vbus {
197 pinctrl-0 = <&usb0_vbus_pin_a>;
198 gpio = <&pio 7 17 0>;
202 reg_usb1_vbus: usb1-vbus {
206 reg_usb2_vbus: usb2-vbus {
211 compatible = "regulator-fixed";
212 pinctrl-names = "default";
213 pinctrl-0 = <&vmmc3_pin_cubietruck>;
214 regulator-name = "vmmc3";
215 regulator-min-microvolt = <3300000>;
216 regulator-max-microvolt = <3300000>;