From 2fa689bbdceb8f5a8fa1bb02035c4c7c34e51135 Mon Sep 17 00:00:00 2001 From: Peter Maxwell Warasila Date: Mon, 17 Oct 2022 15:45:18 -0400 Subject: [PATCH] dts: bindings: serial: stm32: restore tx-rx-swap property As part of a previous refactor, this property was removed from the STM32 USART binding. The driver code to support this feature was not changed. This commit simply adds the property back to the new base .yaml for device trees which used it. Tested on a proprietary board using the STM32U5 on USART1. Signed-off-by: Peter Maxwell Warasila --- dts/bindings/serial/st,stm32-uart-base.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dts/bindings/serial/st,stm32-uart-base.yaml b/dts/bindings/serial/st,stm32-uart-base.yaml index 00177aed2c4..9c9e0ce22eb 100644 --- a/dts/bindings/serial/st,stm32-uart-base.yaml +++ b/dts/bindings/serial/st,stm32-uart-base.yaml @@ -25,6 +25,12 @@ properties: only TX pin is used afterwards and should be configured. RX/TX conflicts must be handled on user side. + tx-rx-swap: + type: boolean + required: false + description: + Swap the TX and RX pins. Used in case of a cross wired connection. + tx-invert: type: boolean required: false