Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Based on the context provided, it seems that the issue arises from the behavior of the UART driver in Torizon OS, which may not respect the removal of the uart-has-rtscts property dynamically. Here are some steps and considerations that might help address the issue:
Driver Behavior: The UART driver might be designed to enable RTS and CTS pins by default when the UART is active, regardless of the device tree settings. This could be why removing the uart-has-rtscts property does not have the desired effect.
OS Management: Torizon OS might have routines that enforce the use of RTS and CTS pins, potentially overriding the device tree settings. This could be due to additional configurations or kernel parameters that are not immediately visible in the device tree.
Default Configuration: The default configuration for the UART2 peripheral might still be active, causing the RTS and CTS pins to be set high by Torizon OS.
Recommendations:
Investigate the UART Driver: Review the source code of the UART driver in Torizon OS to understand how it handles RTS and CTS pins. Check if there are any conditions or settings that might override the device tree modifications.
Check for Additional Configurations: Look for other device tree properties or kernel parameters that might influence the behavior of the UART2 peripheral and its pins. There might be additional settings that need to be adjusted.
Consult Documentation and Community: Refer to the Torizon OS documentation and community forums for any insights or known issues related to UART configurations and RTS/CTS pin control.
Consider Complete Disabling: If partial disabling continues to fail, consider disabling the entire UART2 peripheral when RTS and CTS are not needed, as this approach has been confirmed to work.
If these steps do not resolve the issue, further investigation into the specific implementation details of Torizon OS and the UART driver may be necessary.
Please, also check if these links can help you solve your problem: