Firefly开源社区

打印 上一主题 下一主题

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

70

积分

0

威望

0

贡献

技术小白

积分
70

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

发表于 2020-3-27 10:08:37      浏览:10122 | 回复:3        打印      只看该作者   [复制链接] 楼主
rk3399proSDIO控制器的供电为1.8V,所以模组的IO电平也给1.8V。修改dts,对应的脚位也复用成sdio功能。
飞线出来调试,示波器观看 时钟信号正常,编译驱动加进内核,正常开机未能识别sdio设备。可能是dts或者硬件脚位问题?可以帮忙看一下吗
  1. [   13.687810] dwmmc_rockchip fe310000.dwmmc: card claims to support voltages below defined range
  2. [   14.189411] dwmmc_rockchip fe310000.dwmmc: Busy; trying anyway
  3. [   14.189952] mmc_host mmc1: Timeout sending command (cmd 0x202000 arg 0x0 status 0x0)
  4. [   14.193226] mmc_host mmc1: Voltage change didn't complete
  5. [   14.457759] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
  6. [   14.978577] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
  7. [   15.334629] tty_port_close_start: tty->count = 1 port count = 2.
  8. [   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";
};




2.png (59.31 KB, 下载次数: 758)

2.png
回复

使用道具 举报

70

积分

0

威望

0

贡献

技术小白

积分
70
发表于 2020-3-27 10:13:16        只看该作者  沙发
[    3.865965] ======== PULL WL_REG_ON(-1) HIGH! ========
[    3.865968] [WLAN_RFKILL]: rockchip_wifi_power: 1
[    3.865972] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[    3.865975] [WLAN_RFKILL]: 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] [WLAN_RFKILL]: rockchip_wifi_power: 1
[    3.938174] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[    3.944725] [WLAN_RFKILL]: 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!
回复

使用道具 举报

21

积分

0

威望

0

贡献

技术小白

积分
21
发表于 2020-5-19 12:51:04        只看该作者  板凳
去掉  sd-uhs-sdr104; 这个看看
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-11-8 21:08:05        只看该作者  地板
你好,这个问题你解决了吗?
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表