调试sdio wifi rtl8822cs,识别不了sdio卡
rk3399proSDIO控制器的供电为1.8V,所以模组的IO电平也给1.8V。修改dts,对应的脚位也复用成sdio功能。
飞线出来调试,示波器观看 时钟信号正常,编译驱动加进内核,正常开机未能识别sdio设备。可能是dts或者硬件脚位问题?可以帮忙看一下吗
[ 13.687810] dwmmc_rockchip fe310000.dwmmc: card claims to support voltages below defined range
[ 14.189411] dwmmc_rockchip fe310000.dwmmc: Busy; trying anyway
[ 14.189952] mmc_host mmc1: Timeout sending command (cmd 0x202000 arg 0x0 status 0x0)
[ 14.193226] mmc_host mmc1: Voltage change didn't complete
[ 14.457759] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 14.978577] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[ 15.334629] tty_port_close_start: tty->count = 1 port count = 2.
[ 16.174773] mmc1: error -16 whilst initialising SDIO card
dtssdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rk809 1>;
clock-names = "ext_clock";
status = "okay";
};
wireless-wlan {
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
wifi_chip_type = "rtl8822cs";
sdio_vref = <1800>;
status = "okay";
};
&sdio0 {
clock-frequency = <150000000>;
clock-freq-min-max = <200000 150000000>;
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 = "default";
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_cd &sdio0_pwr >;
sd-uhs-sdr104;
status = "okay";
};
[ 3.865965] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 3.865968] : rockchip_wifi_power: 1
[ 3.865972] : rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 3.865975] : wifi turn on power. -1
[ 3.879482] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[ 3.918940] =======================================================
[ 3.922133] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[ 3.925331] =======================================================
[ 3.928559] Realtek 8822CS SDIO WiFi driver (Powered by Rockchip,Ver v5.7.3_32588.20190319_COEX20190318-0a0a) init.
[ 3.934962] : rockchip_wifi_power: 1
[ 3.938174] : rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 3.944725] : wifi turn on power. -1
[ 3.948080] mmc2:mmc host rescan start!
[ 3.951362] RTW: module init start
[ 3.954605] RTW: rtl88x2cs v5.7.3_32588.20190319_COEX20190318-0a0a
[ 3.958155] RTW: build time: Mar 23 2020 04:16:14
[ 3.961598] RTW: rtl88x2cs BT-Coex version = COEX20190318-0a0a
[ 3.965179] RTW: ## Calling platform_driver_register
[ 4.167423] wifi_platform_bus_enumerate device present 1
[ 4.180247] ======== Card detection to detect SDIO card! ========
[ 4.192958] mmc2:mmc host rescan start! 去掉sd-uhs-sdr104; 这个看看 你好,这个问题你解决了吗?
页:
[1]