I need to activate altenernate function RTS UART C on PIN 4 IMX6ULL, I’m already using ovelays to activate autodirection on all the uarts, a and b are ok but uartc works but doesn’t have rts pin on PIN 4.
Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?
To activate the RTS function for UART C (which corresponds to &uart5 in the device tree for the i.MX6ULL) on PIN 4, you will need to ensure that the pin is correctly configured in the device tree to support RTS functionality. Given that UART A and B are configured and working with RTS, but UART C does not have RTS on PIN 4 as per your description, the issue likely lies in the pin configuration for UART C.
First, verify that PIN 4 is capable of serving as an RTS pin for UART C on the i.MX6ULL. This information can be found in the i.MX6ULL reference manual, which details the pin multiplexing options available. If PIN 4 can indeed function as RTS for UART C, you will need to adjust the pin control settings (pinctrl-0) for &uart5 to include this pin with the correct alternate function setting.
The device tree snippet you provided for &uart5 shows the configuration for enabling RS-485 mode, including RTS/CTS hardware flow control (fsl,uart-has-rtscts;). However, to specifically assign PIN 4 for RTS functionality, you’ll need to define a pin control group (pinctrl) that includes PIN 4 configured for the RTS function. This involves creating or modifying a pin control group in the pinmux settings.
Here is a generalized example of what the pin control group definition might look like, assuming PIN 4 is designated as MX6ULL_PAD_xxx for RTS functionality:
In this example, MX6ULL_PAD_xxx should be replaced with the actual pad definition for PIN 4 configured for the RTS function, and MX6_PAD_SETTINGS_UART_RTS should be replaced with the correct pad settings for RTS functionality. These settings typically include the mux mode, pull-up/pull-down configuration, and any
Please, also check if these links can help you solve your problem: