Toybrick

调试sdio wifi rtl8822cs,识别不了sdio卡

cr7jj

中级会员

积分
456
楼主
发表于 2020-3-27 09:55:31    查看: 11201|回复: 2 | [复制链接]    打印 | 只看该作者
SDIO控制器的供电为1.8V,所以模组的IO电平也给1.8V。修改dts,对应的脚位也复用成sdio功能。
飞线出来调试,示波器观看 时钟信号正常,编译驱动加进内核,正常开机未能识别sdio设备。可能是dts或者硬件脚位问题?可以帮忙看一下吗
  1. [   11.857454] mmc1: error -16 whilst initialising SDIO card
  2. [   12.358375] dwmmc_rockchip fe310000.dwmmc: Busy; trying anyway
  3. [   12.358926] mmc_host mmc1: Timeout sending command (cmd 0x202000 arg 0x0 status 0x0)
  4. [   12.373470] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
复制代码


        sdio_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";
        };

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

cr7jj

中级会员

积分
456
沙发
 楼主| 发表于 2020-3-27 09:56:31 | 只看该作者
  1. [    3.865965] ======== PULL WL_REG_ON(-1) HIGH! ========
  2. [    3.865968] [WLAN_RFKILL]: rockchip_wifi_power: 1
  3. [    3.865972] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
  4. [    3.865975] [WLAN_RFKILL]: wifi turn on power. -1
  5. [    3.879482] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
  6. [    3.918940] =======================================================
  7. [    3.922133] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
  8. [    3.925331] =======================================================
  9. [    3.928559] Realtek 8822CS SDIO WiFi driver (Powered by Rockchip,Ver v5.7.3_32588.20190319_COEX20190318-0a0a) init.
  10. [    3.934962] [WLAN_RFKILL]: rockchip_wifi_power: 1
  11. [    3.938174] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
  12. [    3.944725] [WLAN_RFKILL]: wifi turn on power. -1
  13. [    3.948080] mmc2:mmc host rescan start!
  14. [    3.951362] RTW: module init start
  15. [    3.954605] RTW: rtl88x2cs v5.7.3_32588.20190319_COEX20190318-0a0a
  16. [    3.958155] RTW: build time: Mar 23 2020 04:16:14
  17. [    3.961598] RTW: rtl88x2cs BT-Coex version = COEX20190318-0a0a
  18. [    3.965179] RTW: ## Calling platform_driver_register
  19. [    4.167423] wifi_platform_bus_enumerate device present 1
  20. [    4.180247] ======== Card detection to detect SDIO card! ========
  21. [    4.192958] mmc2:mmc host rescan start!
复制代码
回复

使用道具 举报

cr7jj

中级会员

积分
456
板凳
 楼主| 发表于 2020-3-27 09:58:37 | 只看该作者

&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";
};
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表