https://blog.csdn.net/weixin_44710103/article/details/130614423?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-130614423-blog-127049775.235%5Ev39%5Epc_relevant_anti_t3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-130614423-blog-127049775.235%5Ev39%5Epc_relevant_anti_t3&utm_relevant_index=5
https://www.jianshu.com/p/26ae7bbc91d7
1.WL_REG_ON WL_HOST_WAKE 脚位配错,GPIO
2.sdio的电压与高速电路的驱动
3.3V低速,25mhz
1.8v高数,150mhz 具体应该查看芯片手册
3.sdio驱动没使能
sdmmc2: dwmmc@fe000000
4.驱动没加载 , insmod bcmdhd.ko
5.frameware 的路径 和 固件没有准备好,这个可以从dmesg看见打开失败字样
wireless_wlan: wireless-wlan {
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
pinctrl-names = "default";
wifi_chip_type = "ap6256"; //这个名字影响不大,驱动会去目录找芯片对应的bin文件
pinctrl-0 = <&wifi_host_wake_irq>;
WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //对一下芯片脚位
status = "okay";
};
&sdmmc2 {
max-frequency = <25000000>; //根据电路电压和芯片原理图确定这个配置
supports-sdio;
bus-width = <4>;
disable-wp;
cap-sd-highspeed;
cap-sdio-irq;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;