Skip to content

Commit

Permalink
dt-bindings: serial: Document CTS/RTS gpios in STM32 UART
Browse files Browse the repository at this point in the history
Document the use of CTS/RTS gpios for flow control in STM32 UART
controller. These properties can be used instead of 'st,hw-flow-ctrl'
for making use of any gpio pins for flow control instead of dedicated
pins. It should be noted that both CTS/RTS and 'st,hw-flow-ctrl'
properties cannot co-exist in a design.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200420170204.24541-2-mani@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mani-Sadhasivam authored and gregkh committed May 15, 2020
1 parent 7d31676 commit 888ae87
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,27 @@ properties:
minItems: 1
maxItems: 2

cts-gpios:
maxItems: 1

rts-gpios:
maxItems: 1

wakeup-source: true

rs485-rts-delay: true
rs485-rts-active-low: true
linux,rs485-enabled-at-boot-time: true
rs485-rx-during-tx: true

if:
required:
- st,hw-flow-ctrl
then:
properties:
cts-gpios: false
rts-gpios: false

required:
- compatible
- reg
Expand Down

0 comments on commit 888ae87

Please sign in to comment.