Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
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.
-
Verify Pin Control Configuration:
- Ensure that the pin control node is correctly defined in your overlay. The
iomuxcnode should include the correct pin settings, as you have done withpinctrl_gpio1_io00_disabled. Double-check the pin function and control settings to ensure they match the intended configuration.
- Ensure that the pin control node is correctly defined in your overlay. The
-
Check GPIO Node Configuration:
- The GPIO node should be correctly defined with the
gpio-hogproperty, as you have done. Ensure that thegpiosproperty is correctly set, and theoutput-highoroutput-lowdirective is used as needed.
- The GPIO node should be correctly defined with the
-
Overlay Application:
- After modifying the overlay, ensure it is compiled into a
.dtbofile and placed in the correct location on the boot partition. - Update the
overlays.txtfile to include your custom overlay and run thesynccommand before rebooting the system. This ensures that changes are written to the file system.
- After modifying the overlay, ensure it is compiled into a
-
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.
-
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.