Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] serial: core: add transceiver interface select GPIO
@ 2026-10-21  5:19 Tapio Reijonen
  2026-10-21  5:19 ` [PATCH 1/2] dt-bindings: serial: rs485: Add " Tapio Reijonen
  2026-10-21  5:19 ` [PATCH 2/2] serial: core: Drive the " Tapio Reijonen
  0 siblings, 2 replies; 4+ messages in thread
From: Tapio Reijonen @ 2026-10-21  5:19 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-serial, devicetree, linux-kernel, Lukas Wunner,
	Christoph Niedermaier, Ilpo Järvinen, Lino Sanfilippo,
	Hugo Villeneuve, Tapio Reijonen

Multiprotocol transceivers such as the LTC2873 provide an RS485
interface and an alternative interface, typically RS232, on the same
bus pins and choose between them with an interface select input. Add
an optional rs485-select-gpios property next to the existing
rs485-term-gpios and rs485-rx-during-tx-gpios, and let the serial core
drive it from the RS485 configuration state, so that every UART driver
using uart_get_rs485_mode() supports such transceivers without driver
changes.

Tested on an i.MX6SX UART and on a MAX14830 channel, each wired to an
LTC2873, by observing the bus line while switching RS485 on and off
with TIOCSRS485.

Signed-off-by: Tapio Reijonen <tapio.reijonen@vaisala.com>
---
Tapio Reijonen (2):
      dt-bindings: serial: rs485: Add transceiver interface select GPIO
      serial: core: Drive the transceiver interface select GPIO

 .../devicetree/bindings/serial/rs485.yaml          |  8 ++++++
 drivers/tty/serial/serial_core.c                   | 29 +++++++++++++++++++++-
 include/linux/serial_core.h                        |  1 +
 3 files changed, 37 insertions(+), 1 deletion(-)
---
base-commit: 1184f87e2790e8af9be3116f608d2e86b4792d7d
change-id: 20261019-serial-rs485-mode-gpio-e76bb72b6f21

Best regards,
-- 
Tapio Reijonen <tapio.reijonen@vaisala.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-21  5:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21  5:19 [PATCH 0/2] serial: core: add transceiver interface select GPIO Tapio Reijonen
2026-10-21  5:19 ` [PATCH 1/2] dt-bindings: serial: rs485: Add " Tapio Reijonen
2026-10-21  5:19 ` [PATCH 2/2] serial: core: Drive the " Tapio Reijonen
2026-10-21  5:41   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox