Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
It looks like you’ve done a good job setting up the device tree for the MMC2 port on your Verdin AM62 module. However, there are a few things you might want to check and try to resolve the issue:
-
Check the Pin Configuration:
Ensure that the pin configuration in the device tree matches the actual hardware connections. Double-check the pin numbers and their configurations. -
Voltage Levels:
You mentioned that 3.3V is provided to the SD card and you see 1.8V on the SD_CD pin when the card is not detected, which goes LOW when connected. This seems correct, but ensure that the voltage levels are stable and within the expected range. -
Driver and Kernel Logs:
Since the MMC2 driver is loaded, check the kernel logs (dmesg
) for any error messages related to the MMC2 interface or SD card detection. This might give you more insight into what is going wrong. -
Device Tree Status:
Ensure that thestatus
property forsdhci2
is set to"okay"
and not"disabled"
. From your provided device tree snippet, it looks correct, but double-check for any typos or inconsistencies. -
GPIO Configuration:
Verify that the GPIO used for card detection (cd-gpios = <&main_gpio0 71 GPIO_ACTIVE_LOW>;
) is correctly configured and functioning. You can test this GPIO separately to ensure it is working as expected. -
Clock Configuration:
Ensure that the clocks are correctly configured and enabled. Theclock-names
andclocks
properties should match the hardware specifications. -
Additional Properties:
Sometimes additional properties might be required for proper operation. Refer to the TI AM62 documentation and the Toradex device tree reference for any additional properties that might be needed. -
Testing with Another SD Card:
Try using a different SD card to rule out any issues with the card itself. -
Kernel Configuration:
Ensure that the kernel is configured to support the MMC/SDHCI interface. Check the kernel configuration (.config
) for the relevant options.
If after these checks the issue persists, you might want to reach out to Toradex support with detailed logs and your device tree configuration for further assistance.
Please, also check if these links can help you solve your problem: