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”;
};
