1 From 3e7fc7d394db0783996519f2d5affde5152a628e Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Thu, 26 Dec 2013 17:14:33 +0800
4 Subject: [PATCH] ARM: dts: sun7i: add WiFi module to Cubietruck DTS
6 The CubieTruck has an AMPAK AP6210 WiFi+Bluetooth module. The WiFi
7 part is a BCM43362 IC connected to MMC2 in the A20 SoC via SDIO.
8 The IC also takes a 32.768 KHz low power clock input, and a power
9 enable signal via GPIO.
11 The WiFi module supports out-of-band interrupt signaling via GPIO,
12 but this is not supported in this patch.
14 arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 47 ++++++++++++++++++++++++++++++
15 1 file changed, 47 insertions(+)
17 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
18 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
23 + mmc3: mmc@01c12000 {
24 + pinctrl-names = "default", "default";
25 + pinctrl-0 = <&mmc3_pins_a>;
26 + pinctrl-1 = <&wifi_host_wake_pin>;
27 + vmmc-supply = <®_vmmc3>;
32 + /* out of band interrupt not working */
33 + /* compatible = "broadcom,bcm43362"; */
34 + interrupt-parent = <&pio>;
35 + interrupts = <10 2>; /* EINT10 */
40 usbphy: phy@01c13400 {
41 usb1_vbus-supply = <®_usb1_vbus>;
42 usb2_vbus-supply = <®_usb2_vbus>;
47 + mmc3_pins_a: mmc3@0 {
48 + /* AP6210 requires pull-up */
49 + allwinner,pull = <1>;
52 + vmmc3_pin_cubietruck: vmmc3_pin@0 {
53 + allwinner,pins = "PH9";
54 + allwinner,function = "gpio_out";
55 + allwinner,drive = <0>;
56 + allwinner,pull = <0>;
59 ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
60 allwinner,pins = "PH12";
61 allwinner,function = "gpio_out";
63 allwinner,drive = <0>;
67 + wifi_host_wake_pin: wifi_host_wake_pin@0 {
68 + allwinner,pins = "PH10";
69 + allwinner,function = "gpio_in";
70 + allwinner,drive = <0>;
71 + allwinner,pull = <0>;
75 uart0: serial@01c28000 {
77 reg_usb2_vbus: usb2-vbus {
82 + compatible = "regulator-fixed";
83 + pinctrl-names = "default";
84 + pinctrl-0 = <&vmmc3_pin_cubietruck>;
85 + regulator-name = "vmmc3";
86 + regulator-min-microvolt = <3300000>;
87 + regulator-max-microvolt = <3300000>;
89 + gpio = <&pio 7 9 0>;