]> git.baikalelectronics.ru Git - kernel.git/commit
serial: stm32: Add RS485 RTS GPIO control
authorMarek Vasut <marex@denx.de>
Sat, 25 Jul 2020 14:49:47 +0000 (16:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Jul 2020 06:46:22 +0000 (08:46 +0200)
commitf606a8b7e252d0cefb882bf8d9ba9d3e6f3eced4
tree656f57830f9eeee82fcc2007adf36430fc1b8946
parent1b7e4d49deb32fa129423f0b36e9ac41d127fcc5
serial: stm32: Add RS485 RTS GPIO control

While the STM32 does support RS485 drive-enable control within the
UART IP itself, some systems have the drive-enable line connected
to a pin which cannot be pinmuxed as RTS. Add support for toggling
the RTS GPIO line using the modem control GPIOs to provide at least
some sort of emulation.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Manivannan Sadhasivam <mani@kernel.org>
Cc: Fabrice Gasnier <fabrice.gasnier@st.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-stm32@st-md-mailman.stormreply.com
Link: https://lore.kernel.org/r/20200725144947.537007-1-marex@denx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c