Home/Support/Support Forum/Imx8mn - wifi on the SDIO interface debugging
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Imx8mn - wifi on the SDIO interface debugging

0 votes
I have built zeus 3.0 yocto image for imx8mn-dvk and I'm trying connect WiFi module CYW43455 via SDIO interface (plugged as sdCard - usdhc2 interface).

I have configured usdhc2 in device-tree according to MMC/SD/SDIO insctruction on Digi documentation but I can't run module with brcmfmac.ko driver.

I can't see this message in dmesg:

mmc1 new high speed SDIO card at address 0001

cat /sys/kernel/debug/mmc1/ios

clock: 0 Hz
vdd: 0 (invalid)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 0 (off)
bus width: 0 (1 bits)
timing spec: 0 (legacy)
signal voltage: 0 (3.30 V)
driver type: 0 (driver type B)

I wonder if the information should appear after booting or after starting the driver?

When I boot system with sdCard it's shows this:

[ 2.910610] mmc1: new high speed SDHC card at address 5048

Device tree configuration:

/* External wifi module - SDIO */
&usdhc2 {
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>,
<&pinctrl_usdhc2_vsel>;
pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>,
<&pinctrl_usdhc2_vsel>;
pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>,
<&pinctrl_usdhc2_vsel>;
non-removable;
no-1-8-v;
bus-width = <4>;
vmmc-supply = <&reg_rf_wl_en_2>;
cd-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
status = "okay";
};

reg_rf_wl_en_2: regulator@8 {
compatible = "regulator-fixed";
reg = <8>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_reg_3v3_rf>;
regulator-name = "rf_wl_en_2";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
startup-delay-us = <100>;
vin-supply = <&reg_3v3_rf>;
status = "okay";
};
pinctrl_usdhc2_vsel: usdhc2grp_vsel {
fsl,pins = <
MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
>;
};
pinctrl_usdhc2: usdhc2grp {
fsl,pins = <
MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
>;
};

Thanks for help.
asked Mar 4 in Linux by adi1525 New to the Community (5 points)

Please log in or register to answer this question.

2 Answers

0 votes
are you using Digi cc8mn and trying to add 2nd wifi interface? Are you able to see it in u-boot with
mmc rescan
mmc dev 1
mmc info
answered Mar 10 by LeonidM Veteran of the Digi Community (4,457 points)
Yes I'm using Digi cc8mn with the second wifi module over SDIO. I have connected it via sdCard socket.

After plugged the modem, response from commands from you:

=> mmc dev 1
=> mmc info
Device: FSL_SDHC
Manufacturer ID: 13
OEM: 14e
Name: Q2J55
Bus Speed: 52000000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 7.1 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 7.1 GiB WRREL
Boot Capacity: 16 MiB ENH
RPMB Capacity: 4 MiB ENH
=>
I think that the response from mmc info is for mmc0.
One more thing, I didn't configure device tree for uboot, I configured it for kernel only.

Sorry I din't respond for long time but I was working on another project.
0 votes
Yes I'm using Digi cc8mn with the second wifi module over SDIO. I have connected it via sdCard socket.

After plugged the modem, response from commands from you:

=> mmc dev 1
=> mmc info
Device: FSL_SDHC
Manufacturer ID: 13
OEM: 14e
Name: Q2J55
Bus Speed: 52000000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 7.1 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 7.1 GiB WRREL
Boot Capacity: 16 MiB ENH
RPMB Capacity: 4 MiB ENH
=>

I think that the response from mmc info is for mmc0.

One more thing, I didn't configure device tree for uboot, I configured it for kernel only.


Sorry I din't respond for long time but I was working on another project.
answered Mar 17 by adi1525 New to the Community (5 points)
reshown Apr 22 by LeonidM
...