OSDN Git Service

serial: ar933x_uart: add RS485 support
authorDaniel Golle <daniel@makrotopia.org>
Fri, 21 Feb 2020 21:23:31 +0000 (22:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2020 12:26:26 +0000 (13:26 +0100)
commit9be1064fe524b396cca449b2fe4252b7919a245f
treedf938963d6007ba029a80a40ecf8b8487b9c0477
parent9fa3c4b1fa379f2b55859c6d27ba0563aac06516
serial: ar933x_uart: add RS485 support

Emulate half-duplex operation and use mctrl_gpio to add support for
RS485 tranceiver with transmit/receive switch hooked to RTS GPIO line.
This is needed to make use of the RS485 port found on Teltonika RUT955.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/20200221212331.GA21467@makrotopia.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/ar933x_uart.c