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
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
11 Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
12 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
14 .../allwinner/sun50i-h5-orangepi-zero-plus2.dts | 32 ++++++++++++++++++++++
15 1 file changed, 32 insertions(+)
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
22 regulator-min-microvolt = <3300000>;
23 regulator-max-microvolt = <3300000>;
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>;
40 + pinctrl-names = "default";
41 + pinctrl-0 = <&mmc1_pins_a>;
42 + vmmc-supply = <®_vcc3v3>;
43 + vqmmc-supply = <®_vcc3v3>;
44 + mmc-pwrseq = <&wifi_pwrseq>;
51 + compatible = "brcm,bcm4329-fmac";
52 + interrupt-parent = <&r_pio>;
53 + interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */
54 + interrupt-names = "host-wake";
59 pinctrl-names = "default";
60 pinctrl-0 = <&mmc2_8bit_pins>;
62 pinctrl-0 = <&uart0_pins_a>;
67 + pinctrl-names = "default";
68 + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;