SDIO interface on Beagle bone black

Hi All,

I am able to interface a SDIO module to the mmc3 by modifying the DTS file.
I am able to detect as SDIO on mmc3. But the CM53 fails while trying to load firmware on to the module.

info of the MMC2:

root@am335x-evm:~# cat /sys/kernel/debug/mmc2/ios q
clock: 50000000 Hz
vdd: 21 (3.3 ~ 3.4 V)
bus mode: 2 (push-pull)
chip select: 0 (don’t care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type: 0 (driver type B)
root@am335x-evm:~# cat /sys/kernel/debug/mmc2/ios a
clock ios mmc2:0001/ regs
root@am335x-evm:~# cat /sys/kernel/debug/mmc2/
clock ios mmc2:0001/ regs
root@am335x-evm:~# cat /sys/kernel/debug/mmc2/regs a
mmc2:
sdio irq mode polling
ctx_loss: 1

regs:
CON: 0x00000600
PSTATE: 0x01f70000
HCTL: 0x00000d02
SYSCTL: 0x000e0087
IE: 0x00000000
ISE: 0x00000000
CAPA: 0x06e10080

Please find the logs.
Any inputs would be of great help, as I am stuck at data transfer over SDIO.

Thanks,
Annapurna.B

cmd53-fail.txt (19.5 KB)

Hi Annapurna,

Which module? Wifi? If yes then try to reduce the frequency by setting the max-frequency to 24MHz in the dts file.

-Gautam.

Hello Guys,
I have simiar issue with SDIO wifi adapter. Could you confirm SDIO functionality on BBB?

-Vyacheslav

пятница, 1 февраля 2019 г. в 06:01:41 UTC+3, mi...@gmail.com: