[PATCH 0/2] serial: ns16550: support half duplex rs485

Pierre-Olivier Huard pierre-olivier.huard at rtone.fr
Tue Feb 6 07:22:37 PST 2024


The default ns16550 driver does not support rs485. This patchset adds
support for half duplex rs485 to the ns16550 driver. Basic handling of the RTS
signal is done to enable the rs485 transceivers.

Some properties are now parsed from the device tree:
- 'linux,rs485-enabled-at-boot-time', enabling RTS toggling when sending data
- 'rs485-rts-active-low', inverting the RTS signal
- 'rs485-rx-during-tx', enabling RX during TX, disabled by default

Pierre-Olivier Huard (2):
  serial: ns16550: add basic support for rs485
  serial: ns16550: add support for half duplex rs485

 drivers/serial/serial_ns16550.c | 42 +++++++++++++++++++++++++++++++--
 drivers/serial/serial_ns16550.h |  7 ++++++
 2 files changed, 47 insertions(+), 2 deletions(-)

-- 
2.43.0




More information about the barebox mailing list