diff mbox series

[v2,2/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

Message ID 20210227164157.30971-2-devik@eaxlabs.cz
State New
Headers show
Series None | expand

Commit Message

Martin Devera Feb. 27, 2021, 4:41 p.m. UTC
Add new rx-tx-swap property to allow for RX & TX pin swapping.

Signed-off-by: Martin Devera <devik@eaxlabs.cz>
---
 Documentation/devicetree/bindings/serial/st,stm32-uart.yaml | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Fabrice Gasnier March 1, 2021, 10:36 a.m. UTC | #1
On 2/27/21 5:41 PM, Martin Devera wrote:
> Add new rx-tx-swap property to allow for RX & TX pin swapping.

> 

> Signed-off-by: Martin Devera <devik@eaxlabs.cz>

> ---

>  Documentation/devicetree/bindings/serial/st,stm32-uart.yaml | 4 ++++

>  1 file changed, 4 insertions(+)

> 

> diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> index 8631678283f9..45f2a19997da 100644

> --- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> +++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> @@ -40,6 +40,10 @@ properties:

>  

>    uart-has-rtscts: true

>  

> +  rx-tx-swap:

> +    type: boolean

> +    maxItems: 1

> +


Hi Martin,

This could be restricted to st,stm32f7-uart and st,stm32h7-uart
compatibles. This option isn't available on stm32f4 (e.g. st,stm32-uart
compatible)

Thanks for your patch,
Best Regards,
Fabrice

>    dmas:

>      minItems: 1

>      maxItems: 2

>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
index 8631678283f9..45f2a19997da 100644
--- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
@@ -40,6 +40,10 @@  properties:
 
   uart-has-rtscts: true
 
+  rx-tx-swap:
+    type: boolean
+    maxItems: 1
+
   dmas:
     minItems: 1
     maxItems: 2