282e2171f2e46f40adb362aa2f6c030e88ced3c2
[buildroot.git] /
1 From: Sergey Matyukevich <geomatsi@gmail.com>
2 Date: Sun, 11 Feb 2018 16:21:43 +0300
3 Subject: [PATCH] arm64: dts: orange-pi-zero-plus2: enable AP6212a WiFi/BT combo
4
5 Enable AP6212a WiFi/BT combo chip on orange-pi-zero-plus2 board:
6 - WiFi SDIO interface is connected to MMC1
7 - WiFi REG_ON pin connected to gpio PA9: attach to mmc-pwrseq
8 - WiFi HOST_WAKE pin connected to gpio PL7
9 - BT is connected to UART1
10
11 Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
12 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
13 ---
14 .../allwinner/sun50i-h5-orangepi-zero-plus2.dts | 32 ++++++++++++++++++++++
15 1 file changed, 32 insertions(+)
16
17 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
18 index a42fd79a62a3..d415b7b67cce 100644
19 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
20 +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
21 @@ -64,6 +64,13 @@
22 regulator-min-microvolt = <3300000>;
23 regulator-max-microvolt = <3300000>;
24 };
25 +
26 + wifi_pwrseq: wifi_pwrseq {
27 + compatible = "mmc-pwrseq-simple";
28 + pinctrl-names = "default";
29 + reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
30 + post-power-on-delay-ms = <200>;
31 + };
32 };
33
34 &mmc0 {
35 @@ -75,6 +82,25 @@
36 status = "okay";
37 };
38
39 +&mmc1 {
40 + pinctrl-names = "default";
41 + pinctrl-0 = <&mmc1_pins_a>;
42 + vmmc-supply = <&reg_vcc3v3>;
43 + vqmmc-supply = <&reg_vcc3v3>;
44 + mmc-pwrseq = <&wifi_pwrseq>;
45 + bus-width = <4>;
46 + non-removable;
47 + status = "okay";
48 +
49 + brcmf: wifi@1 {
50 + reg = <1>;
51 + compatible = "brcm,bcm4329-fmac";
52 + interrupt-parent = <&r_pio>;
53 + interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */
54 + interrupt-names = "host-wake";
55 + };
56 +};
57 +
58 &mmc2 {
59 pinctrl-names = "default";
60 pinctrl-0 = <&mmc2_8bit_pins>;
61 @@ -90,3 +116,9 @@
62 pinctrl-0 = <&uart0_pins_a>;
63 status = "okay";
64 };
65 +
66 +&uart1 {
67 + pinctrl-names = "default";
68 + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
69 + status = "okay";
70 +};
71 --
72 2.16.1
73