Disabling Selected GPIO Pins on Colibri iMX8X without Affecting Entire GPIO Controller

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

Did you like my answer?

:+1: :-1:


To disable specific GPIO pins on the Colibri iMX8X for Linux while keeping them accessible to the Cortex-M4, you need to modify the device tree overlay to target only the specific GPIO pins rather than disabling the entire GPIO block. Here are some steps and considerations:

  1. Modify the Device Tree Overlay: Instead of disabling the entire lsio_gpio1 block, you should specify the individual GPIO pins you want to disable. Unfortunately, the context does not provide a specific example of how to do this, but you can try to modify the overlay to target specific pins.

  2. Ensure Proper Initialization: Make sure that the initialization sequence for the GPIOs is set up correctly so that the Cortex-M4 can access the GPIO pins after the Linux kernel starts. This might involve ensuring that the M4 firmware is correctly configured to take control of the GPIOs.

  3. Community Support: Since the context suggests seeking guidance from the Toradex community, it would be beneficial to look for examples or ask for advice on the Toradex community forums. Other users may have faced similar issues and could provide practical solutions or alternative methods.

  4. Check for Conflicts: Ensure there are no conflicts in the device tree or in the M4 firmware that might cause the GPIOs to be reconfigured or disabled when Linux starts.

If you continue to face issues, reaching out to the Toradex community or support might provide additional insights or examples that have been successfully implemented by other users.

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

https://community.nxp.com/t5/i-MX-Processors/IMX8M-Mini-Sharing-GPIO-block-between-A53-and-M4/m-p/969766.