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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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(-)


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux