ARM: dts: STiH410-b2260: Identify the UART RTS line
authorLee Jones <lee.jones@linaro.org>
Fri, 3 Feb 2017 10:23:16 +0000 (10:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2017 08:47:52 +0000 (09:47 +0100)
When hardware flow-control is disabled, manual toggling of the UART's
reset line (RTS) using userland applications (e.g. stty) is not
possible, since the ASC IP does not provide this functionality in the
same was as some other IPs do.  Thus, we have to do this manually.
This patch configures the UART RTS line as a GPIO for manipulation
within the UART driver when HW flow-control is not enabled.

Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/stih410-b2260.dts

index 06b0696cb6b8d0007732cac1c627f75080d054ee..fa16abac0e4dfa719e74c068be11bb3b0e57dcd8 100644 (file)
@@ -63,6 +63,7 @@
                uart0: serial@9830000 {
                        label = "LS-UART0";
                        status = "okay";
+                       rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>;
                };
 
                /* Low speed expansion connector */