Skip to content

serial: add rs485-mux-gpio dt binding and support

Rasmus Villemoes linux-devicetree linux-serial lkml oe-kbuild oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: serial: rs485: add rs485-mux-gpios bindingDocumentation/devicetree/bindings/serial/rs485.yaml+5 -028 replies
2/2serial: core: implement support for rs485-mux-gpiosdrivers/tty/serial/serial_core.c include/linux/serial_core.h+34 -24 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLino Sanfilippo
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] serial: add rs485-mux-gpio dt binding and support

Some boards are wired so that they support both rs232 and rs485, with a gpio controlling a mux connecting the SOC's pins to the appropriate external circuitry. Instead of requiring the application to know about such details and handle the gpio appropriately, allow it to be described in device tree and let the serial core code handle it if present.

Tested on a board based on imx8mp.

Rasmus Villemoes (2):
dt-bindings: serial: rs485: add rs485-mux-gpios binding
serial: core: implement support for rs485-mux-gpios

 .../devicetree/bindings/serial/rs485.yaml     |  5 +++
 drivers/tty/serial/serial_core.c              | 35 +++++++++++++++++--
 include/linux/serial_core.h                   |  1 +
 3 files changed, 39 insertions(+), 2 deletions(-)
Signature · 1 line
2.40.1.1.g1c60b9335d