serial: ar933x_uart: add RS485 support
PATCH v2 1/1 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 <[email protected]>
---
v2: use bool to indicate ongoing half-duplex send, use it afterwards
to decide whether we've just been in a send operation.
drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/ar933x_uart.c | 113 +++++++++++++++++++++++++++++-- 2 files changed, 108 insertions(+), 6 deletions(-)
drivers/tty/serial/Kconfig +1 -0
@@ -1279,6 +1279,7 @@ config SERIAL_AR933X tristate "AR933X serial port support" depends on HAVE_CLK && ATH79 select SERIAL_CORE + select SERIAL_MCTRL_GPIO if GPIOLIB help If you have an Atheros AR933X SOC based board and want to use the built-in UART of the SoC, say Y to this option.
drivers/tty/serial/ar933x_uart.c +107 -6
207 lines not on this page · raw message
Signature · 1 line
2.25.1