Does SDIO support wifi?

,

Hi,

mmc1 is not even showing up in your log. Please dump your final dts file to us. If you don’t understand what I mean, please just share the dtb file you are flashing with us.

tegra194-p2822-0000-a00.dtsi.txt (1.5 KB) tegra194-soc-sdhci.dtsi.txt (4.6 KB)

Hi, appendix is the dst.

Hi,

No, I just want your dtb file. Forget about any dts.
Is that clear to you?

tegra194-p2888-0001-p2822-0000.dtb.txt (282.5 KB)

Hi,
Is that what you want?

Yes, that is. Thanks.

In log, mmc1 shows mmc1: error -110 whilst initialising SD card.

Hi,

In the previous log you shared here, I don’t see it.

Please do upload new log if you find something new and tell us what you’ve done to make this log appear.

log1.txt (95.7 KB)
I have add non-removable; in dst.

Hi,
Is there any way to solve the problem “mmc1: error -110 whilst initialising SD card”.

Hi,

Need your patience. We are still checking this issue.

Thanks.

Hi,
The project is urgent,I have try many ways to make sdio-wifi work, unfortunately it seems no effect.
But i think mmc host maybe needs patch?

Hi,

The dts looks good. Could you share the detail of your SDIO card?

Also, could you check the regulator you write in your dts are all good?

I have also try on NX platform ,it seems also something wrong.
Please help analyse the log.
log.txt (95.8 KB)

Hi,

Your case on NX is different and the SDIO card is enumerated.

[ 1.528076] mmc1: new high speed SDIO card at address 0001

However, the driver from Broadcom does not work.

[ 21.372246] dhd_module_init: in Dongle Host Driver, version 100.10.545.10 (r826445-20200429-2)
[ 21.372251] ======== dhd_wlan_init_plat_data ========
[ 21.372256] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=-1, oob_irq_flags=0x414
[ 21.372259] dhd_wlan_init_gpio: WL_REG_ON=-1
[ 21.372262] dhd_wifi_platform_load: Enter
[ 21.372266] Power-up adapter ‘DHD generic adapter’
[ 21.374060] wifi_platform_set_power = 1, delay: 200 msec
[ 21.681118] wifi_platform_bus_enumerate device present 1
[ 21.697330] bcmsdh_register: register client driver
[ 21.699091] bcmsdh_sdmmc_probe: Enter num=1
[ 21.699231] bcmsdh_sdmmc_probe: Enter num=2
[ 21.699235] bus num (host idx)=1, slot num (rca)=1
[ 21.699239] found adapter info ‘DHD generic adapter’
[ 21.699339] sdioh_attach: set sd_f2_blocksize 256
[ 21.699412] sdioh_attach: sd clock rate = 0
[ 21.699908] bcmsdh_probe: Host OOB irq is not defined
[ 21.699913] sdioh_probe: bcmsdh_probe failed
[ 21.700084] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[ 33.905095] dhd_wifi_platform_load_sdio: sdio_register_driver timeout or error
[ 33.905265] wifi_platform_set_power = 0, delay: 0 msec
[ 33.905269] wifi_platform_bus_enumerate device present 0
[ 33.905273] unregister wifi platform drivers
[ 33.905276] wifi_platform_bus_enumerate device present 0

Thus, please consult with Broadcom and see if any firmware is needed or which driver supports this chip.

log1.txt (116.6 KB)
Please help analyse the log1.txt.
What can we do with “sdhci-tegra 3440000.sdhci: could not set regulator OCR (-22)”?

Hi,

Please check if your vmmc in dts is a really valid regulator.

Hi WayneWWW,

I set the vmmc below:

vmmc-supply = <&battery_reg>;

and the wifi module voltage support by the board directly.

No, you have to use a GPIO as regulator for this instead of dummy one.

Why? Can I change sdhci as below?

sdhci@3440000 {
	mmc-ocr-mask = <0x0>; 
	vmmc-supply = <&p3668_vdd_1v8_sd>;
    max-clk-limit = <50000000>;
	cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 2) 0>;
    reg-on = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 1) 1>;

    non-removable;
    force-non-removable-rescan;
	nvidia,cd-wakeup-capable;
	nvidia,vmmc-always-on;
    compad-vref-3v3 = <0x7>;
	compad-vref-1v8 = <0x7>;
    only-1-8-v;

	status = "okay";
};

Because the software driver needs it to control some timing of power, put a dummy regulator will make driver not able to do that.

If you track the code of " could not set regulator OCR", you shall see the driver is trying to enable the battery_reg.