]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: serial: Add binding for rs485 bus termination GPIO
authorLukas Wunner <lukas@wunner.de>
Mon, 18 May 2020 14:45:01 +0000 (16:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 May 2020 10:42:53 +0000 (12:42 +0200)
commit17be60821956643bb2d2a5e508ba10c587c0ef80
tree26b6a9e4fd67b30f3c1a7ceaaa62c367a1920054
parentecc24383831a8fb1301644d416fd38c325fffc7a
dt-bindings: serial: Add binding for rs485 bus termination GPIO

Commit 9da9a4b6f588 ("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.

[Heiko Stuebner converted the binding to YAML, hence his Signed-off-by.]

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/4f4411895dc52c846f766e7f7207ec412c4811b6.1589811297.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/serial/rs485.yaml