[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200412180923.30774-2-mani@kernel.org>
Date: Sun, 12 Apr 2020 23:39:22 +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,
Manivannan Sadhasivam <mani@...nel.org>
Subject: [PATCH 1/2] dt-bindings: serial: Add binding for software flow control in STM32 UART
From: Manivannan Sadhasivam <mani@...nel.org>
Add devicetree binding for software flow control in STM32 UART
controller. While at it, let's also fix one schema error reported by
`make dtbs_check`.
Signed-off-by: Manivannan Sadhasivam <mani@...nel.org>
---
Rob: Still the `dtbs_check` validation fails. This is due to the
`linux,rs485-enabled-at-boot-time` property. I don't have any idea on how
to fix this.
.../devicetree/bindings/serial/st,stm32-uart.yaml | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
index 238c44192d31..ea5797a1b403 100644
--- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
@@ -38,13 +38,26 @@ properties:
description: enable hardware flow control
$ref: /schemas/types.yaml#/definitions/flag
+ st,sw-flow-ctrl:
+ description: enable software flow control
+ $ref: /schemas/types.yaml#/definitions/flag
+
+ rts-gpios:
+ description: RTS pin used if st,sw-flow-ctrl is true
+ maxItems: 1
+
+ cts-gpios:
+ description: CTS pin used if st,sw-flow-ctrl is true
+ maxItems: 1
+
dmas:
minItems: 1
maxItems: 2
dma-names:
items:
- enum: [ rx, tx ]
+ - const: rx
+ - const: tx
minItems: 1
maxItems: 2
--
2.17.1
Powered by blists - more mailing lists