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 usb1_vbus-supply = <®_usb1_vbus>;
44 usb2_vbus-supply = <®_usb2_vbus>;
57 target-supply = <®_ahci_5v>;
71 /* AP6210 requires pull-up */
75 vmmc3_pin_cubietruck: vmmc3_pin@0 {
76 allwinner,pins = "PH9";
77 allwinner,function = "gpio_out";
78 allwinner,drive = <0>;
82 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
83 allwinner,pins = "PH12";
84 allwinner,function = "gpio_out";
85 allwinner,drive = <0>;
89 led_pins_cubietruck: led_pins@0 {
90 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
91 allwinner,function = "gpio_out";
92 allwinner,drive = <0>;
96 usb0_vbus_pin_a: usb0_vbus_pin@0 {
97 allwinner,pins = "PH17";
98 allwinner,function = "gpio_out";
99 allwinner,drive = <0>;
100 allwinner,pull = <0>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&ir0_pins_a>;
116 uart0: serial@01c28000 {
117 pinctrl-names = "default";
118 pinctrl-0 = <&uart0_pins_a>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&i2c0_pins_a>;
128 compatible = "x-powers,axp209";
130 interrupt-parent = <&nmi_intc>;
133 interrupt-controller;
134 #interrupt-cells = <1>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&i2c1_pins_a>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&i2c2_pins_a>;
150 gmac: ethernet@01c50000 {
151 pinctrl-names = "default";
152 pinctrl-0 = <&gmac_pins_rgmii_a>;
157 phy1: ethernet-phy@1 {
164 compatible = "gpio-leds";
165 pinctrl-names = "default";
166 pinctrl-0 = <&led_pins_cubietruck>;
169 label = "cubietruck:blue:usr";
170 gpios = <&pio 7 21 0>;
174 label = "cubietruck:orange:usr";
175 gpios = <&pio 7 20 0>;
179 label = "cubietruck:white:usr";
180 gpios = <&pio 7 11 0>;
184 label = "cubietruck:green:usr";
185 gpios = <&pio 7 7 0>;
189 reg_ahci_5v: ahci-5v {
190 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
191 gpio = <&pio 7 12 0>;
195 reg_usb0_vbus: usb0-vbus {
196 pinctrl-0 = <&usb0_vbus_pin_a>;
197 gpio = <&pio 7 17 0>;
201 reg_usb1_vbus: usb1-vbus {
205 reg_usb2_vbus: usb2-vbus {
210 compatible = "regulator-fixed";
211 pinctrl-names = "default";
212 pinctrl-0 = <&vmmc3_pin_cubietruck>;
213 regulator-name = "vmmc3";
214 regulator-min-microvolt = <3300000>;
215 regulator-max-microvolt = <3300000>;