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>;
41 usbphy: phy@01c13400 {
42 usb1_vbus-supply = <®_usb1_vbus>;
43 usb2_vbus-supply = <®_usb2_vbus>;
56 target-supply = <®_ahci_5v>;
70 /* AP6210 requires pull-up */
74 vmmc3_pin_cubietruck: vmmc3_pin@0 {
75 allwinner,pins = "PH9";
76 allwinner,function = "gpio_out";
77 allwinner,drive = <0>;
81 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
82 allwinner,pins = "PH12";
83 allwinner,function = "gpio_out";
84 allwinner,drive = <0>;
88 led_pins_cubietruck: led_pins@0 {
89 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
90 allwinner,function = "gpio_out";
91 allwinner,drive = <0>;
97 pinctrl-names = "default";
98 pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
102 uart0: serial@01c28000 {
103 pinctrl-names = "default";
104 pinctrl-0 = <&uart0_pins_a>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&i2c0_pins_a>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&i2c1_pins_a>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&i2c2_pins_a>;
126 gmac: ethernet@01c50000 {
127 pinctrl-names = "default";
128 pinctrl-0 = <&gmac_pins_rgmii_a>;
133 phy1: ethernet-phy@1 {
140 compatible = "gpio-leds";
141 pinctrl-names = "default";
142 pinctrl-0 = <&led_pins_cubietruck>;
145 label = "cubietruck:blue:usr";
146 gpios = <&pio 7 21 0>;
150 label = "cubietruck:orange:usr";
151 gpios = <&pio 7 20 0>;
155 label = "cubietruck:white:usr";
156 gpios = <&pio 7 11 0>;
160 label = "cubietruck:green:usr";
161 gpios = <&pio 7 7 0>;
165 reg_ahci_5v: ahci-5v {
166 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
167 gpio = <&pio 7 12 0>;
171 reg_usb1_vbus: usb1-vbus {
175 reg_usb2_vbus: usb2-vbus {
180 compatible = "regulator-fixed";
181 pinctrl-names = "default";
182 pinctrl-0 = <&vmmc3_pin_cubietruck>;
183 regulator-name = "vmmc3";
184 regulator-min-microvolt = <3300000>;
185 regulator-max-microvolt = <3300000>;