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