linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Implement support for inverted serial TX/RX on i.MX
@ 2020-02-12 16:35 George Hilliard
  2020-02-12 16:35 ` [PATCH v3 1/2] dt-bindings: serial: document fsl,inverted-tx and -rx options George Hilliard
  2020-02-12 16:35 ` [PATCH v3 2/2] tty: imx serial: Implement support for reversing TX and RX polarity George Hilliard
  0 siblings, 2 replies; 5+ messages in thread
From: George Hilliard @ 2020-02-12 16:35 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: George Hilliard, linux-serial, devicetree, NXP Linux Team, kernel

This peripheral has dedicated control bits that flip input/output
signals before handing them off to the OS.  This is useful on my
hardware because the UART is connected to an RS-422 transceiver with the
+/- pins hooked up backward.  Instead of a hack flipping all the bits
before sending them, the hardware can do it for free.

Revision 3 sets *and* clears the bit as necessary during startup.  It
also moves init before transmit is enabled.

George Hilliard (2):
  dt-bindings: serial: document fsl,inverted-tx and -rx options
  tty: imx serial: Implement support for reversing TX and RX polarity

 .../bindings/serial/fsl-imx-uart.txt          |  4 +++
 drivers/tty/serial/imx.c                      | 29 +++++++++++++++----
 2 files changed, 27 insertions(+), 6 deletions(-)

-- 
2.25.0


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

end of thread, other threads:[~2020-02-18 23:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12 16:35 [PATCH v3 0/2] Implement support for inverted serial TX/RX on i.MX George Hilliard
2020-02-12 16:35 ` [PATCH v3 1/2] dt-bindings: serial: document fsl,inverted-tx and -rx options George Hilliard
2020-02-18 23:07   ` Rob Herring
2020-02-12 16:35 ` [PATCH v3 2/2] tty: imx serial: Implement support for reversing TX and RX polarity George Hilliard
2020-02-12 20:47   ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).