Skip to content

Add CTS/RTS gpio support to STM32 UART

[email protected] linux-arm-kernel linux-devicetree linux-serial lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v22 patches 3 repliesSuperseded

Changes in v3 from the cover letter

* Added Andy's reviewed-by tag
* Fixed minor issues spotted by Fabrice

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: serial: Document CTS/RTS gpios in STM32 UARTDocumentation/devicetree/bindings/serial/st,stm32-uart.yaml+14 -03 replies
2/2tty: serial: Add modem control gpio support for STM32 UARTdrivers/tty/serial/Kconfig drivers/tty/serial/stm32-usart.c drivers/tty/serial/stm32-usart.h+53 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoFabrice GasnierRob Herring
1/2R-b R-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] Add CTS/RTS gpio support to STM32 UART

From: Manivannan Sadhasivam <[email protected]>

Hello,

This patchset adds CTS/RTS gpio support to STM32 UART controller. Eventhough the UART controller supports using dedicated CTS/RTS gpios, sometimes we need to use different set of gpios for flow control.

This is necessary for the upcoming STM32MP1 based board called Stinger96 IoT-Box. On that board, a bluetooth chip is connected to one of the UART controller but the CTS/RTS lines got swapped mistakenly. So this patchset serves as a workaround for that hardware bug and also supports the usecase of using any gpio for CTS/RTS functionality. As per the sugggestion provided by Andy for v1, I've now switched to mctrl_gpio driver.

This patchset has been validated with Stinger96 IoT-Box connected to Murata WiFi-BT combo chip.

Thanks,
Mani

Changes in v3:

* Added Andy's reviewed-by tag
* Fixed minor issues spotted by Fabrice

Changes in v2:

As per the review by Andy:

* Switched to mctrl_gpio driver instead of using custom CTS/RTS implementation
* Removed the use of software flow control terminology.

Manivannan Sadhasivam (2):
dt-bindings: serial: Document CTS/RTS gpios in STM32 UART
tty: serial: Add modem control gpio support for STM32 UART

 .../bindings/serial/st,stm32-uart.yaml        | 14 +++++
 drivers/tty/serial/Kconfig                    |  1 +
 drivers/tty/serial/stm32-usart.c              | 53 ++++++++++++++++++-
 drivers/tty/serial/stm32-usart.h              |  1 +
 4 files changed, 67 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1