[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200416175729.5550-3-mani@kernel.org>
Date: Thu, 16 Apr 2020 23:27:29 +0530
From: mani@...nel.org
To: gregkh@...uxfoundation.org, robh+dt@...nel.org,
mcoquelin.stm32@...il.com, alexandre.torgue@...com
Cc: linux-serial@...r.kernel.org, devicetree@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
fabrice.gasnier@...com, andy.shevchenko@...il.com,
Manivannan Sadhasivam <mani@...nel.org>
Subject: [PATCH v2 2/2] dt-bindings: serial: Document CTS/RTS gpios in STM32 UART
From: Manivannan Sadhasivam <mani@...nel.org>
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.
Signed-off-by: Manivannan Sadhasivam <mani@...nel.org>
---
.../devicetree/bindings/serial/st,stm32-uart.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
index 238c44192d31..75b8521eb7cb 100644
--- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
@@ -48,6 +48,12 @@ properties:
minItems: 1
maxItems: 2
+ cts-gpios:
+ maxItems: 1
+
+ rts-gpios:
+ maxItems: 1
+
wakeup-source: true
rs485-rts-delay: true
@@ -55,6 +61,14 @@ properties:
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
--
2.17.1
Powered by blists - more mailing lists