mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] serial: ns16550: support half duplex rs485
@ 2024-02-06 15:22 Pierre-Olivier Huard
  2024-02-06 15:22 ` [PATCH 1/2] serial: ns16550: add basic support for rs485 Pierre-Olivier Huard
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pierre-Olivier Huard @ 2024-02-06 15:22 UTC (permalink / raw)
  To: barebox; +Cc: sebastien.bourdelin, a.fatoum, oss-contrib, Pierre-Olivier Huard

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




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

end of thread, other threads:[~2024-02-08  7:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 15:22 [PATCH 0/2] serial: ns16550: support half duplex rs485 Pierre-Olivier Huard
2024-02-06 15:22 ` [PATCH 1/2] serial: ns16550: add basic support for rs485 Pierre-Olivier Huard
2024-02-06 15:22 ` [PATCH 2/2] serial: ns16550: add support for half duplex rs485 Pierre-Olivier Huard
2024-02-08  7:15 ` [PATCH 0/2] serial: ns16550: support " Sascha Hauer

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