From c25b2c208202d75256c45606b7ad5e31d0421a31 Mon Sep 17 00:00:00 2001 From: wycwyhwyq <5f20.6d9b@gmail.com> Date: Mon, 14 Oct 2024 15:14:56 +0800 Subject: [PATCH] drivers: k230: support ap6212 wifi Signed-off-by: wycwyhwyq <5f20.6d9b@gmail.com> --- arch/riscv/boot/dts/canaan/k230-canmv.dts | 11 +++++++++++ arch/riscv/configs/k230_defconfig | 3 +++ 2 files changed, 14 insertions(+) diff --git a/arch/riscv/boot/dts/canaan/k230-canmv.dts b/arch/riscv/boot/dts/canaan/k230-canmv.dts index 01da0a2a14df..8e320202481f 100644 --- a/arch/riscv/boot/dts/canaan/k230-canmv.dts +++ b/arch/riscv/boot/dts/canaan/k230-canmv.dts @@ -104,3 +104,14 @@ &vo { vth_line = <10>; }; + +&mmc_sd0 { + status = "okay"; + io_fixed_1v8; + rx_delay_line = <0x0d>; + tx_delay_line = <0x00>; + bcmdhd_wlan { + compatible = "android,bcmdhd_wlan"; + gpio_wl_reg_on = <&gpio0_ports 1 GPIO_ACTIVE_HIGH>; + }; +}; diff --git a/arch/riscv/configs/k230_defconfig b/arch/riscv/configs/k230_defconfig index 5154cb7feb81..93e6bf58219f 100644 --- a/arch/riscv/configs/k230_defconfig +++ b/arch/riscv/configs/k230_defconfig @@ -297,3 +297,6 @@ CONFIG_V4L_PLATFORM_DRIVERS=y CONFIG_VPU_CANAAN=y CONFIG_DRM_DISPLAY_CONNECTOR=y CONFIG_DRM_LONTIUM_LT9611=y +CONFIG_CFG80211=y +CONFIG_CFG80211_WEXT=y +CONFIG_MAC80211=y