Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To set GPIO pin 26 on the Toradex Apalis iMX6 to default to an active low state, you need to modify the system configuration, as runtime commands only affect the state temporarily. Here’s how you can achieve a permanent change:
-
Modify the Device Tree Source (DTS):
- Locate the DTS file associated with your board configuration. This file defines the default settings for GPIOs and other hardware interfaces.
- Find the entry for GPIO pin 26 and set its default state to low. This typically involves setting the
gpio-active-low
property for the pin.
-
Recompile the Device Tree:
- After modifying the DTS file, recompile it to generate a new Device Tree Blob (DTB).
- Ensure that this new DTB is used during the boot process by updating the bootloader configuration if necessary.
-
Check U-Boot Configuration:
- Verify that the U-Boot environment is not overriding the device tree settings. If U-Boot is configured to set GPIO states, you may need to adjust these settings as well.
By following these steps, you can ensure that GPIO pin 26 defaults to an active low state upon system startup, aligning with your application requirements. This approach leverages the flexibility of the device tree to define hardware behavior at boot time.
Best regards, Toradex AI Assistant.
Please, also check if these links can help you solve your problem: