补充:
之前弄错了,我们用的是MMC2,dts文件里的mmc3,修改后依旧WIFI无法工作
大家好,请教下,我们使用RTL8723BSwifi模块,驱动加载成功了,但是probe函数未被调用是怎么回事?
GPIO3-14是WIFI的使能,低的时候poweron WIFI.
注释掉dma是因为有“错误提示
[ 1.378795] /ocp/mmc@481d8000: could not get #dma-cells for /ocp/l4_wkup@44c00000/prcm@200000/clocks/dpll_disp_ck
[ 1.391306] omap_hsmmc 481d8000.mmc: RX DMA channel request failed
”
dst修改参考的是am335x-evmsk
具体如下:
&mmc2 {
/* these are on the crossbar and are outlined in the
xbar-event-map element */
/* dmas = <&edma 12
&edma 13>;
dma-names = "tx", "rx";*/
status = "okay";
vmmc-supply = <&wlan_en_reg>;
bus-width = <4>;
pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins_default >;
ti,non-removable;
ti,needs-special-hs-handling;
cap-power-off-card;
keep-power-in-suspend;
#address-cells = <1>;
#size-cells = <0>;
rtl8723bs_wifi: rtl8723bs_wifi@0 {
compatible = "ti,8723bs";
reg = <2>;
};
};
wlan_en_reg: fixedregulator@2 {
compatible = "regulator-fixed";
regulator-name = "wlan-en-regulator";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
pinctrl-names = "default";
pinctrl-0 = <&wlan_pins_default>;
/* WLAN_EN GPIO for this board - Bank1, pin16 */
/*gpio = <&gpio1 16 0>;*/
gpio = <&gpio3 14 0>;
/* WLAN card specific delay */
startup-delay-us = <70000>;
enable-active-high;
};
mmc2_pins_default: mmc2_pins_default {
pinctrl-single,pins = <
0x8c ( PIN_INPUT | MUX_MODE3 ) /* (V12) gpmc_clk.mmc2_clk */
0x88 ( PIN_OUTPUT | MUX_MODE3 ) /* (T13) gpmc_csn3.mmc2_cmd */
0x44 ( PIN_INPUT | MUX_MODE3 ) /* (V14) gpmc_a1.mmc2_dat0 */
0x48 ( PIN_INPUT | MUX_MODE3 ) /* (U14) gpmc_a2.mmc2_dat1 */
0x4c ( PIN_INPUT | MUX_MODE3 ) /* (T14) gpmc_a3.mmc2_dat2 */
0x78 ( PIN_INPUT | MUX_MODE3 ) /* (U18) gpmc_be1n.mmc2_dat3 */
>;
};
/* wl12xx/wl18xx card enable/irq GPIOs. */
wlan_pins_default: pinmux_wlan_pins_default {
pinctrl-single,pins = <
0x190 ( PIN_INPUT | MUX_MODE7 ) /* (A13) mcasp0_aclkx.gpio3[14] */
/* 0x198 ( PIN_INPUT | MUX_MODE7 ) /* (D12) mcasp0_axr0.gpio3[16] */
>;
};
