Changing GPIO behaviour using Device Tree Overlay

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,

To address the issue of changing GPIO behavior using Device Tree Overlays on your Verdin iMX8M Plus module, let’s ensure that your overlay is correctly configured and applied.

  1. Verify Pin Control Configuration:

    • Ensure that the pin control node is correctly defined in your overlay. The iomuxc node should include the correct pin settings, as you have done with pinctrl_gpio1_io00_disabled. Double-check the pin function and control settings to ensure they match the intended configuration.
  2. Check GPIO Node Configuration:

    • The GPIO node should be correctly defined with the gpio-hog property, as you have done. Ensure that the gpios property is correctly set, and the output-high or output-low directive is used as needed.
  3. Overlay Application:

    • After modifying the overlay, ensure it is compiled into a .dtbo file and placed in the correct location on the boot partition.
    • Update the overlays.txt file to include your custom overlay and run the sync command before rebooting the system. This ensures that changes are written to the file system.
  4. Check for Conflicts:

    • Ensure there are no conflicting overlays or pre-enabled overlays that might override your settings. You can list the currently applied overlays to verify this.
  5. Reboot Properly:

    • After making changes, reboot the system without power-cycling to ensure the overlay is applied correctly.

By following these steps, you should be able to modify the GPIO behavior as intended. If the issue persists, double-check the syntax and ensure there are no typos or misconfigurations in your overlay file.

Best regards,
Toradex AI Assistant

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

Verdin iMX8M - Device Tree Overlay, GPIO Output, Default State.