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. The behavior you’re observing, where GPIO pins are pulled high during the bootloader phase, is likely due to the default configuration of the bootloader, which can set GPIO states before the Linux kernel takes over. This is a common issue when the bootloader initializes hardware differently than the final operating system configuration.
To address this, you can modify the U-Boot bootloader configuration to ensure that the GPIO pins are set to the desired state during the boot process. Here are some steps you can take:
-
Check U-Boot Configuration:
- Access the U-Boot source code for your Colibri iMX8X module, typically available in the Toradex BSP (Board Support Package).
- Locate the board-specific configuration files, which might be under a directory like
board/toradex/colibri_imx8x/
.
-
Modify GPIO Initialization:
- In the U-Boot source, look for the GPIO initialization code, often found in board-specific files or common initialization routines.
- Ensure that the GPIO pins in question are configured as pull-downs during the bootloader phase. You may need to add or modify code to explicitly set these pins to the desired state.
-
Rebuild U-Boot:
- After making the necessary changes, rebuild the U-Boot bootloader. Follow the Toradex documentation for building and deploying U-Boot to your module.
-
Test the Changes:
- Flash the modified U-Boot to your module and observe the GPIO behavior during boot. Verify that the pins remain in the pull-down state as expected.
By ensuring that the bootloader configures the GPIO pins correctly, you can prevent them from being pulled high during the boot process. If you continue to experience issues, double-check the device tree and U-Boot configurations to ensure consistency across all stages of the boot process.
I hope this helps resolve your issue. If you have any further questions, feel free to ask.
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.