dt-bindings: serial: Add binding for rs485 bus

A patch from »serial: 8250: Add rs485 emulation to 8250_dw« in state Mainline for linux-kernel

From: Lukas Wunner <lukas@...> Date: Wed, 25 Mar 2020 17:03:18 +0100

Commit-Message

Commit e8759ad17d41 ("serial: uapi: Add support for bus termination") introduced the ability to enable rs485 bus termination from user space. So far the feature is only used by a single driver, 8250_exar.c, using a hardcoded GPIO pin specific to Siemens IOT2040 products. Provide for a more generic solution by allowing specification of an rs485 bus termination GPIO pin in the device tree. An upcoming commit implements support for this pin for any 8250 driver. The binding is used in device trees of the "Revolution Pi" PLCs offered by KUNBUS. Signed-off-by: Lukas Wunner <lukas@...> Cc: Sascha Weisenberger <sascha.weisenberger@...> Cc: Jan Kiszka <jan.kiszka@...> [moved to yaml rs485 binding] Signed-off-by: Heiko Stuebner <heiko.stuebner@...>

Patch-Comment

Documentation/devicetree/bindings/serial/rs485.yaml | 4 ++++ 1 file changed, 4 insertions(+)

Statistics

  • 4 lines added
  • 0 lines removed

Changes

------------- Documentation/devicetree/bindings/serial/rs485.yaml --------------
index d4beaf11222d..a9ad17864889 100644
@@ -43,3 +43,7 @@ properties:
rs485-rx-during-tx:
description: enables the receiving of data even while sending data.
$ref: /schemas/types.yaml#/definitions/flag
+
+ rs485-term-gpios:
+ description: GPIO pin to enable RS485 bus termination.
+ maxItems: 1
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...