Tool/software:
Hi,
We are struggling to enable the HW flow control on UART2. We have applied the patch below to the dts file and set the CRTSCTS flag in the termios call in our Linux UART application. The UART TX and RX work as expected but the HW flow control is still disabled.
Is there anything wrong in the patch below ?
diff --git a/arch/arm64/boot/dts/ti/k3-am64x-wiser.dts b/arch/arm64/boot/dts/ti/k3-am64x-wiser.dts
index 86bf47a96a64..09f7e6aaea4b 100644
--- a/arch/arm64/boot/dts/ti/k3-am64x-wiser.dts
+++ b/arch/arm64/boot/dts/ti/k3-am64x-wiser.dts
@@ -265,6 +265,7 @@ &main_uart2 {
pinctrl-names = "default";
pinctrl-0 = <&zigbee_pins_default>;
current-speed = <115200>;
+ uart-has-rtscts;
};
@@ -176,6 +174,8 @@ zigbee_pins_default: zigbee-default-pins {
pinctrl-single,pins = <
AM64X_IOPAD(0x0238, PIN_INPUT, 3) /* (B16) UART0_CTSn.UART2_RXD */
AM64X_IOPAD(0x023c, PIN_OUTPUT, 3) /* (A16) UART0_RTSn.UART2_TXD */
+ AM64X_IOPAD(0x0294, PIN_OUTPUT_PULLUP, 1) /* (J19) GPIO1_76.UART2_RTSn */
+ AM64X_IOPAD(0x028C, PIN_INPUT_PULLUP, 1) /* (L20) GPIO1_75.UART2_CTSn */