Hello!
I have a custom board based on the TX2i module. I have an micro SD card reader connected at the same pins as the dev kit, but I have issues making it work.
In particular, at U-Boot when no SD card is inserted, I have a message:
Card did not respond to voltage select!
if it is inserted, I get instead:
MMC: no card present
When Linux boots, I have several messages like:
[ 2.498959] mmc1: CMD CRC or end bit error, int mask 0xc0000
Then, checking the GPIOs in sysfs, when I turn on the card with no SD card I get (the Card Detect GPIO value is correct, it is not inverted for the card reader I use):
gpiochip0: GPIOs 320-511, parent: platform/2200000.gpio, tegra-gpio:
gpio-412 ( |vdd-usb0-5v ) out lo
gpio-413 ( |vdd-usb1-5v ) out lo
gpio-420 ( |eqos_phy_reset ) out hi
gpio-445 ( |cd ) in lo
gpio-446 ( |en-vdd-sd ) out lo
gpio-479 ( |external-connection:) in lo
then if I insert the card:
gpiochip0: GPIOs 320-511, parent: platform/2200000.gpio, tegra-gpio:
gpio-412 ( |vdd-usb0-5v ) out lo
gpio-413 ( |vdd-usb1-5v ) out lo
gpio-420 ( |eqos_phy_reset ) out hi
gpio-445 ( |cd ) in hi
gpio-446 ( |en-vdd-sd ) out lo
gpio-479 ( |external-connection:) in lo
and when I remove it again I have in syslog
Sep 25 13:50:04 drone kernel: [ 338.164840] mmc2: Enabling vmmc regulator
and in sysfs:
gpiochip0: GPIOs 320-511, parent: platform/2200000.gpio, tegra-gpio:
gpio-412 ( |vdd-usb0-5v ) out lo
gpio-413 ( |vdd-usb1-5v ) out lo
gpio-420 ( |eqos_phy_reset ) out hi
gpio-445 ( |cd ) in lo
gpio-446 ( |en-vdd-sd ) out hi
gpio-479 ( |external-connection:) in lo
Checking the voltages on the pins I do have values that match those shown in sysfs.
The pins have been configured as in figure:
Please find in attachment the current DTB decompiled and the dmesg logs.
Could you please help me out? I’ve tried searching quite a while on the Internet, but I was unable to find a relevant result.
Thanks a lot in advance and have a nice week-end!
Rob
dmesg_log.txt (55.8 KB)
dtb_dump.txt (338.7 KB)