]> git.ipfire.org Git - people/arne_f/kernel.git/blob - arch/arm/boot/dts/sun7i-a20-cubietruck.dts
sun7i: dts: add bananapro.
[people/arne_f/kernel.git] / arch / arm / boot / dts / sun7i-a20-cubietruck.dts
1 /*
2 * Copyright 2013 Oliver Schinagl
3 *
4 * Oliver Schinagl <oliver@schinagl.nl>
5 *
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:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14 /dts-v1/;
15 /include/ "sun7i-a20.dtsi"
16 /include/ "sunxi-common-regulators.dtsi"
17
18 / {
19 model = "Cubietech Cubietruck";
20 compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
21
22 soc@01c00000 {
23 mmc0: mmc@01c0f000 {
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 */
28 status = "okay";
29 };
30
31 mmc3: mmc@01c12000 {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 pinctrl-names = "default";
36 pinctrl-0 = <&mmc3_pins_a>;
37 vmmc-supply = <&reg_vmmc3>;
38 bus_width = <4>;
39 non-removable;
40 status = "okay";
41
42 brcmf: bcrmf@1 {
43 reg = <1>;
44 compatible = "broadcom,bcm4329-fmac";
45 interrupt-parent = <&pio>;
46 interrupts = <10 8>; /* PH10/EINT10 */
47 interrupt-names= "host-wake";
48 status = "okay";
49 };
50 };
51
52 usbphy: phy@01c13400 {
53 usb1_vbus-supply = <&reg_usb1_vbus>;
54 usb2_vbus-supply = <&reg_usb2_vbus>;
55 status = "okay";
56 };
57
58 ehci0: usb@01c14000 {
59 status = "okay";
60 };
61
62 ohci0: usb@01c14400 {
63 status = "okay";
64 };
65
66 ahci: sata@01c18000 {
67 target-supply = <&reg_ahci_5v>;
68 status = "okay";
69 };
70
71 ehci1: usb@01c1c000 {
72 status = "okay";
73 };
74
75 ohci1: usb@01c1c400 {
76 status = "okay";
77 };
78
79 pinctrl@01c20800 {
80 mmc3_pins_a: mmc3@0 {
81 /* AP6210 requires pull-up */
82 allwinner,pull = <1>;
83 };
84
85 vmmc3_pin_cubietruck: vmmc3_pin@0 {
86 allwinner,pins = "PH9";
87 allwinner,function = "gpio_out";
88 allwinner,drive = <0>;
89 allwinner,pull = <0>;
90 };
91
92 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
93 allwinner,pins = "PH12";
94 allwinner,function = "gpio_out";
95 allwinner,drive = <0>;
96 allwinner,pull = <0>;
97 };
98
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>;
104 };
105
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>;
111 };
112
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>;
118 };
119
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>;
125 };
126
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>;
132 };
133
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>;
139 };
140 };
141
142 ir0: ir@01c21800 {
143 pinctrl-names = "default";
144 pinctrl-0 = <&ir0_pins_a>;
145 status = "okay";
146 };
147
148 uart0: serial@01c28000 {
149 pinctrl-names = "default";
150 pinctrl-0 = <&uart0_pins_a>;
151 status = "okay";
152
153 axp: axp20x@34 {
154 reg = <0x34>;
155 interrupt-parent = <&nmi_intc>;
156 interrupts = <0 8>;
157
158 axp,system-power-controller;
159
160 /include/ "x-powers-axp209.dtsi"
161 };
162 };
163
164 gmac: ethernet@01c50000 {
165 pinctrl-names = "default";
166 pinctrl-0 = <&gmac_pins_rgmii_a>;
167 phy = <&phy1>;
168 phy-mode = "rgmii";
169 status = "okay";
170
171 phy1: ethernet-phy@1 {
172 reg = <1>;
173 };
174 };
175
176 uart2: serial@01c28800 {
177 pinctrl-names = "default";
178 pinctrl-0 = <&uart2_pins_a>;
179 status = "okay";
180 };
181
182 i2c0: i2c@01c2ac00 {
183 pinctrl-names = "default";
184 pinctrl-0 = <&i2c0_pins_a>;
185 status = "okay";
186 };
187
188 i2c1: i2c@01c2b000 {
189 pinctrl-names = "default";
190 pinctrl-0 = <&i2c1_pins_a>;
191 status = "okay";
192 };
193
194 i2c2: i2c@01c2b400 {
195 pinctrl-names = "default";
196 pinctrl-0 = <&i2c2_pins_a>;
197 status = "okay";
198 };
199 };
200
201 leds {
202 compatible = "gpio-leds";
203 pinctrl-names = "default";
204 pinctrl-0 = <&led_pins_cubietruck>;
205
206 blue {
207 label = "cubietruck:blue:usr";
208 gpios = <&pio 7 21 0>;
209 };
210
211 orange {
212 label = "cubietruck:orange:usr";
213 gpios = <&pio 7 20 0>;
214 };
215
216 white {
217 label = "cubietruck:white:usr";
218 gpios = <&pio 7 11 0>;
219 };
220
221 green {
222 label = "cubietruck:green:usr";
223 gpios = <&pio 7 7 0>;
224 };
225 };
226
227 reg_ahci_5v: ahci-5v {
228 pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
229 gpio = <&pio 7 12 0>;
230 status = "okay";
231 };
232
233 reg_usb1_vbus: usb1-vbus {
234 status = "okay";
235 };
236
237 reg_usb2_vbus: usb2-vbus {
238 status = "okay";
239 };
240
241 reg_vmmc3: vmmc3 {
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>;
248 enable-active-high;
249 gpio = <&pio 7 9 0>;
250 };
251
252 rfkill-switches {
253 compatible = "simple-bus";
254 pinctrl-names = "default";
255
256 rfkill_bt {
257 compatible = "rfkill-gpio";
258 pinctrl-0 = <&bt_pwr_pin>, <&clk_out_a_pins_a>;
259 rfkill-name = "bt";
260 rfkill-type = <2>;
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>;
265 };
266 };
267 };