Skip to contentSkip to conversation

serial: ar933x_uart: add RS485 support

PATCH Superseded Daniel Golle 1 participant 1 message Feb 19, 2020 TTY layer and serial drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: ar933x_uart: add RS485 support

Emulate half-duplex operations and use mctrl_gpio to add support for RS485 tranceiver with transmit/receive switch hooked to RTS GPIO line.

---
 drivers/tty/serial/Kconfig       |   1 +
 drivers/tty/serial/ar933x_uart.c | 111 +++++++++++++++++++++++++++++--
 2 files changed, 106 insertions(+), 6 deletions(-)
drivers/tty/serial/Kconfig +1 -0
index 52eaac21ff9f..b675924138e0 100644
@@ -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 +105 -6

205 lines not on this page · raw message

Signature · 1 line
2.25.1