I am working with the Verdin AM62 Dual 1GB development board and have encountered an issue while using the GPIO pins. When I run the gpioinfo command, I can see the details of all the pins, but only the following pins—SODMM 12, 10, 8, and 6—are functioning correctly.
However, when I attempt to use other pins from the gpioinfo output, they do not work as expected. Could anyone please advise me on how to configure the other pins as GPIOs so that I can use them in my application?
Here are the details of my setup:
Verdin Development Board v1.1D
AM62 Dual 1GB
Operating System: TDX Wayland with XWayland 6.8.0-devel-20240913131453+build.0 (kirkstone)
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
Thank you for reaching out with your question about the GPIO pins on your Verdin AM62 Dual 1GB development board. Let’s go through some steps to help you configure and use the GPIO pins effectively:
Device Tree Configuration: Ensure that the GPIO pins you wish to use are correctly configured in the device tree. Some pins might be reserved for other functions, so you may need to modify the device tree to set them up as GPIOs. This involves checking the pin multiplexing settings.
Using libgpiod Tools: The libgpiod library offers tools like gpioinfo, gpioset, and gpioget to manage GPIO pins:
Use gpioinfo to list all GPIO lines and their configurations.
Use gpioset to set a GPIO line to a specific state (high or low).
Use gpioget to read the current state of a GPIO line.
Consult the Datasheet: Review the Verdin AM62 datasheet to confirm which pins are available as GPIOs and ensure they are not allocated to other functions. The datasheet will provide necessary details on default configurations and any changes needed.
Testing the Pins: After verifying the configuration, you can test the GPIO pins using a multimeter or an LED to ensure they are functioning as expected.
By following these steps, you should be able to configure and utilize the GPIO pins on your board successfully. If you encounter further issues, double-check the device tree settings to ensure no conflicts with other interfaces.
I hope this helps! Feel free to reach out if you have more questions.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Hi,
How can I modify the device tree to configure GPIO pins for my platform, ensuring that the pins are correctly multiplexed and set up for GPIO functionality?