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", "default";
25 pinctrl-0 = <&mmc0_pins_a>;
26 pinctrl-1 = <&mmc0_cd_pin_reference_design>;
27 cd-gpios = <&pio 7 1 0>; /* PH1 */
35 pinctrl-names = "default";
36 pinctrl-0 = <&mmc3_pins_a>;
37 vmmc-supply = <®_vmmc3>;
44 compatible = "broadcom,bcm4329-fmac";
45 interrupt-parent = <&pio>;
46 interrupts = <10 8>; /* PH10/EINT10 */
47 interrupt-names= "host-wake";
52 usbphy: phy@01c13400 {
53 usb1_vbus-supply = <®_usb1_vbus>;
54 usb2_vbus-supply = <®_usb2_vbus>;
67 target-supply = <®_ahci_5v>;
81 /* AP6210 requires pull-up */
85 vmmc3_pin_cubietruck: vmmc3_pin@0 {
86 allwinner,pins = "PH9";
87 allwinner,function = "gpio_out";
88 allwinner,drive = <0>;
92 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
93 allwinner,pins = "PH12";
94 allwinner,function = "gpio_out";
95 allwinner,drive = <0>;
99 led_pins_cubietruck: led_pins@0 {
100 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
101 allwinner,function = "gpio_out";
102 allwinner,drive = <0>;
103 allwinner,pull = <0>;
106 usb1_vbus_pin: usb1_vbus_pin@0 {
107 allwinner,pins = "PH6";
108 allwinner,function = "gpio_out";
109 allwinner,drive = <0>;
110 allwinner,pull = <2>;
113 usb2_vbus_pin: usb2_vbus_pin@0 {
114 allwinner,pins = "PH3";
115 allwinner,function = "gpio_out";
116 allwinner,drive = <0>;
117 allwinner,pull = <2>;
120 wifi_host_wake_pin: wifi_host_wake_pin@0 {
121 allwinner,pins = "PH10";
122 allwinner,function = "gpio_in";
123 allwinner,drive = <0>;
124 allwinner,pull = <0>;
127 bt_pwr_pin: bt_pwr_pin@0 {
128 allwinner,pins = "PH18";
129 allwinner,function = "gpio_out";
130 allwinner,drive = <0>;
131 allwinner,pull = <0>;
134 bt_wake_pin: bt_wake_pin@0 {
135 allwinner,pins = "PH24";
136 allwinner,function = "gpio_out";
137 allwinner,drive = <0>;
138 allwinner,pull = <0>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&ir0_pins_a>;
148 uart0: serial@01c28000 {
149 pinctrl-names = "default";
150 pinctrl-0 = <&uart0_pins_a>;
155 interrupt-parent = <&nmi_intc>;
158 axp,system-power-controller;
160 /include/ "x-powers-axp209.dtsi"
164 gmac: ethernet@01c50000 {
165 pinctrl-names = "default";
166 pinctrl-0 = <&gmac_pins_rgmii_a>;
171 phy1: ethernet-phy@1 {
176 uart2: serial@01c28800 {
177 pinctrl-names = "default";
178 pinctrl-0 = <&uart2_pins_a>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&i2c0_pins_a>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&i2c1_pins_a>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&i2c2_pins_a>;
202 compatible = "gpio-leds";
203 pinctrl-names = "default";
204 pinctrl-0 = <&led_pins_cubietruck>;
207 label = "cubietruck:blue:usr";
208 gpios = <&pio 7 21 0>;
212 label = "cubietruck:orange:usr";
213 gpios = <&pio 7 20 0>;
217 label = "cubietruck:white:usr";
218 gpios = <&pio 7 11 0>;
222 label = "cubietruck:green:usr";
223 gpios = <&pio 7 7 0>;
227 reg_ahci_5v: ahci-5v {
228 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
229 gpio = <&pio 7 12 0>;
233 reg_usb1_vbus: usb1-vbus {
237 reg_usb2_vbus: usb2-vbus {
242 compatible = "regulator-fixed";
243 pinctrl-names = "default";
244 pinctrl-0 = <&vmmc3_pin_cubietruck>;
245 regulator-name = "vmmc3";
246 regulator-min-microvolt = <3300000>;
247 regulator-max-microvolt = <3300000>;
253 compatible = "simple-bus";
254 pinctrl-names = "default";
257 compatible = "rfkill-gpio";
258 pinctrl-0 = <&bt_pwr_pin>, <&clk_out_a_pins_a>;
261 bt_shutdown-gpios = <0>, <&pio 7 18 0>; /* PH18 */
262 bt_reset-gpios = <&pio 7 24 0>; /* PH24 */
263 clocks = <&clk_out_a>;
264 clock-frequency = <32768>;