Open Drain on Verdin IMX8M Plus

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

It sounds like you’re making good progress with configuring GPIO pins on your Verdin iMX8M Plus. Let’s address the issues you’re encountering with gpioinfo and the internal pull-up resistors.

Firstly, regarding gpioinfo not displaying the open-drain mode, this might be due to limitations in how the tool reports pin configurations. It may not fully support displaying all modes, depending on the GPIO driver or kernel version. To verify the pin configuration, consider directly inspecting the GPIO registers or using a tool that can accurately read these settings.

For the internal pull-up resistor issue, ensure the GPIO pin is correctly configured in the device tree or through the sysfs interface. Here are some steps to help troubleshoot:

  1. Device Tree Configuration: Verify your device tree settings to ensure the GPIO pin is configured with the correct pull-up settings. Check the pinctrl settings associated with your GPIO to confirm that the pull-up is enabled.

  2. Kernel and Driver Support: Make sure your kernel version and GPIO driver support the features you are using. Sometimes, updating to a newer kernel or applying patches can resolve such issues.

  3. Verification with Tools: Use a multimeter or oscilloscope to check the actual electrical state of the pin when configured with the internal pull-up. This can help determine if the issue is with the software configuration or the hardware.

  4. External Pull-up: If the internal pull-up is not functioning, consider using an external pull-up resistor as a temporary solution while you troubleshoot the software configuration.

By following these steps, you should be able to diagnose and resolve the issues with your GPIO configuration. If the problem persists, further investigation into the specific GPIO driver and kernel version might be necessary.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

iMX8MP: Generating clock at pin 91 CLKO2 pin.