Linux Serial subsystem development
 help / color / mirror / Atom feed
* serial: imx: half-duplex RS485 operation with RTS active low
@ 2018-04-16  9:14 Stefan Agner
  2018-04-16  9:22 ` Uwe Kleine-König
  2018-04-16  9:54 ` Einar Vading
  0 siblings, 2 replies; 10+ messages in thread
From: Stefan Agner @ 2018-04-16  9:14 UTC (permalink / raw)
  To: s.hauer, u.kleine-koenig, baruch; +Cc: linux-arm-kernel, linux-serial

Hi,

Using upstream I noticed that RS-485 does not work in the default
configuration for our platforms (Toradex Apalis/Colibri). Closer
debugging shows that it is related to "serial: imx: default to half
duplex rs485".

We use the i.MX UART in DTE mode and control the RS-485 transceiver
using the RTS signal in low-active mode.

	uart-has-rtscts;
	fsl,dte-mode;
	linux,rs485-enabled-at-boot-time;
	rs485-rts-active-low;

Using this setting leads to the RTS signal not getting asserted (the
oscilloscope only shows a very short fluke before the start bit is
sent).

However, using

	uart-has-rtscts;
	fsl,dte-mode;
	linux,rs485-enabled-at-boot-time;
	rs485-rts-active-low;
	rs485-rx-during-tx;

Asserts the RTS signal low active just fine...

Is this a known problem? Any idea where that could come from? It looks
as if the receiver part is actually enabling RTS...?

Also, isn't enabling RX even in half-duplex mode quite common in order
to detect collisions?

--
Stefan

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

end of thread, other threads:[~2018-04-16 18:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-16  9:14 serial: imx: half-duplex RS485 operation with RTS active low Stefan Agner
2018-04-16  9:22 ` Uwe Kleine-König
2018-04-16 10:29   ` Stefan Agner
2018-04-16 13:01     ` Stefan Agner
2018-04-16 13:42       ` Uwe Kleine-König
2018-04-16 16:12         ` Stefan Agner
2018-04-16 18:02           ` Uwe Kleine-König
2018-04-16  9:54 ` Einar Vading
2018-04-16  9:57   ` Einar Vading
2018-04-16 10:35   ` Stefan Agner

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