WiFi接口(1)——模块适配(AW-CM358)

本文介绍了如何在RK3399平台上适配AW-CM358SM模块,包括802.11ac/n/a/g/b兼容的WiFi和蓝牙5.2功能。详细讲解了内核配置、sdio总线设置、模块加载与固件安装,以及WiFi和蓝牙功能的验证过程,涉及WFD规范和HCI_UART驱动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

RK3399适配海华的AW-CM358SM模块(2.4G/5G WiFi,蓝牙5.0)以替代AP6256。
该模块的部分特性:

WIFI:
Backward compatibility with legacy 802.11 ac/ n/a/g/b technology.
Bluetooth:
Fully qualified Bluetooth BT4.2 and support Bluetooth 5.

内核配置

kernel/arch/arm64/boot/dts/rockchip/OK3399-C.dts
kernel/arch/arm64/configs/rockchip_linux_defconfig
kernel/drivers/net/wireless/rockchip_wlan/Kconfig
kernel/drivers/net/wireless/rockchip_wlan/Makefile

kernel/drivers/net/wireless/rockchip_wlan/wlan_src/
kernel/drivers/net/wireless/rockchip_wlan/muart_src/

设备树sdio总线的配置:

        sdio_pwrseq: sdio-pwrseq {
                compatible = "mmc-pwrseq-simple";
                clocks = <&ap6256_lpo_clk>;
                clock-names = "ext_clock";
                pinctrl-names = "default";
                pinctrl-0 = <&wifi_enable_h>;

                /*
                 * On the module itself this is one of these (depending
                 * on the actual card populated):
                 * - SDIO_RESET_L_WL_REG_ON
                 * - PDN (power down when low)
                 */
                reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>;
        };

&sdio0 {
        clock-frequency = <50000000>;
        clock-freq-min-max = <200000 50000000>;
        supports-sdio;
        bus-width = <4>;
        disable-wp;
        cap-sd-highspeed;
        cap-sdio-irq;
        keep-power-in-suspend;
        mmc-pwrseq = <&sdio_pwrseq>;
        non-removable;
        num-slots = <1>;
        pinctrl-names = "def
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值