From c18f24b7115544f56cd8bfb9678b0acecf274754 Mon Sep 17 00:00:00 2001 From: Ken-Vamrs <90229124+Ken-Vamrs@users.noreply.github.com> Date: Wed, 19 Jul 2023 18:03:20 +0800 Subject: [PATCH] arm64: dts: rockchip: cm3s: use bcmdhd wifi driver (#157) Signed-off-by: Ken Wang --- .../boot/dts/rockchip/rk3566-radxa-cm3s.dtsi | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3s.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3s.dtsi index bf0b21963afae1..9386af29a559d8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3s.dtsi @@ -92,6 +92,17 @@ vin-supply = <&vcc_sys>; }; + wireless_wlan: wireless-wlan { + compatible = "wlan-platdata"; + wifi_chip_type = "ap6212"; + rockchip,grf = <&grf>; + clock-names = "clk_wifi"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_irq>; + WIFI,host_wake_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rk817 1>; @@ -525,18 +536,6 @@ pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; sd-uhs-sdr104; status = "okay"; - #address-cells = <1>; - #size-cells = <0>; - - brcmf: wifi@1 { - compatible = "brcm,bcm4329-fmac"; - reg = <1>; - interrupt-parent = <&gpio2>; - interrupts = ; - interrupt-names = "host-wake"; - pinctrl-names = "default"; - pinctrl-0 = <&wifi_host_wake_l>; - }; }; &uart1 { @@ -680,13 +679,15 @@ }; }; - wifi { + sdio-pwrseq { wifi_enable_h: wifi-enable-h { rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; }; + }; - wifi_host_wake_l: wifi-host-wake-irq { - rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; + wireless-wlan { + wifi_host_wake_irq: wifi-host-wake-irq { + rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; }; };