aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-10-18 04:31:38 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-11-02 04:04:57 -0400
commit337cce7ec3caadbbc8098a19446d9195da62335b (patch)
tree7d80dc86907e94fd7cc5b0e099a60c4a04d5bcc3
parentf346019be711dc0bc10d40e8510644005e38d53a (diff)
ARM: dts: sun8i: a83t: bananapi-m3: Enable AP6212 WiFi on mmc1
The WiFi side of the AP6212 WiFi/BT combo module is connected to mmc1. There are also GPIOs for enable and interrupts. An external clock from the AC100 RTC is also used. Enable WiFi on this board by enabling mmc1 and adding the power sequencing clocks and GPIO, as well as the chip's interrupt line. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
index 78036b2f2ab4..c606af3dbfed 100644
--- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
@@ -68,6 +68,17 @@
68 enable-active-high; 68 enable-active-high;
69 gpio = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ 69 gpio = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
70 }; 70 };
71
72 wifi_pwrseq: wifi_pwrseq {
73 compatible = "mmc-pwrseq-simple";
74 clocks = <&ac100_rtc 1>;
75 clock-names = "ext_clock";
76 /* The WiFi low power clock must be 32768 Hz */
77 assigned-clocks = <&ac100_rtc 1>;
78 assigned-clock-rates = <32768>;
79 /* enables internal regulator and de-asserts reset */
80 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
81 };
71}; 82};
72 83
73&ehci0 { 84&ehci0 {
@@ -87,6 +98,23 @@
87 status = "okay"; 98 status = "okay";
88}; 99};
89 100
101&mmc1 {
102 vmmc-supply = <&reg_dldo1>;
103 vqmmc-supply = <&reg_dldo1>;
104 mmc-pwrseq = <&wifi_pwrseq>;
105 bus-width = <4>;
106 non-removable;
107 status = "okay";
108
109 brcmf: wifi@1 {
110 reg = <1>;
111 compatible = "brcm,bcm4329-fmac";
112 interrupt-parent = <&r_pio>;
113 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>;
114 interrupt-names = "host-wake";
115 };
116};
117
90&mmc2 { 118&mmc2 {
91 pinctrl-names = "default"; 119 pinctrl-names = "default";
92 pinctrl-0 = <&mmc2_8bit_emmc_pins>; 120 pinctrl-0 = <&mmc2_8bit_emmc_pins>;