tty: serial: Add modem control gpio support for STM32 UART
authorManivannan Sadhasivam <mani@kernel.org>
Mon, 20 Apr 2020 17:02:04 +0000 (22:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 10:24:15 +0000 (12:24 +0200)
commit6cf61b9bd7cc95ebaeb256155f2c83966555151a
tree01169c276029a54d34fbba46f0ba201968fc6e8e
parent888ae871048c6bc5dad695e25106ffdd009da611
tty: serial: Add modem control gpio support for STM32 UART

STM32 UART controllers have the built in modem control support using
dedicated gpios which can be enabled using 'st,hw-flow-ctrl' flag in DT.
But there might be cases where the board design need to use different
gpios for modem control.

For supporting such cases, this commit adds modem control gpio support
to STM32 UART controller using mctrl_gpio driver.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Link: https://lore.kernel.org/r/20200420170204.24541-3-mani@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/stm32-usart.c
drivers/tty/serial/stm32-usart.h