All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next v2 0/4] tty/serial: at91: add support to FIFOs
@ 2015-06-11 16:20 ` Cyrille Pitchen
  0 siblings, 0 replies; 35+ messages in thread
From: Cyrille Pitchen @ 2015-06-11 16:20 UTC (permalink / raw)
  To: nicolas.ferre, gregkh, wenyou.yang, ludovic.desroches,
	leilei.zhao, josh.wu, alexandre.belloni, linux-serial
  Cc: linux-kernel, linux-arm-kernel, devicetree, galak,
	ijc+devicetree, mark.rutland, pawel.moll, robh+dt,
	Cyrille Pitchen

ChangeLog

v2:
- remove "atmel,rts-high-threshold" and "atmel,rts-low-threshold" from new
  DT properties. For now these two thresholds are set once for all during the
  probe but a later patch might allow to configure them at run time.
- reword the commit message of the DT property patch to better explain why we
  have chosen to introduce the new property "atmel,fifo-size".
- add a missing chunk in the FIFO patch: as the commit message explains, we
  need to use 8bit accesses when dealing with the Transmit/Receive Holding
  Registers.

v1:
This series of patches add support to FIFOs which will be introduced with Atmel
sama5d2x SoC.

FIFOs allow to reduce the number of I/O access. Indeed depending on the data
size and the USART mode, FIFOs work in either single or multiple data. For
multiple data, up to 4 data can be written into the Transmit Holding Register
or read from the Receive Holding Register in a single word access.

Also the RX FIFO allows to reduce the risk of receive overrun and data loss,
especially when the DMA controller is not used.

Finally, when the hardware handshake mode is selected, the RTS line can now be
controlled by two thresholds on the RX FIFO. When FIFO level (the number of
data available to be read) crosses the high threshold, the RTS line is set to
high level telling the peer that it should stop sending new data. Data are read
from the RX FIFO and when the FIFO level crosses the low threshold, the RTS
is set back to low level telling the remote peer that it can send data again.

This new feature resolves a long time hardware limitation where the RTS line
was directly controlled by a PDC signal. There is no equivalent of that signal
for the DMA controller so for all SoCs without PDC for USART there was no mean
to control the RTS line properly: once the hardware handshake mode selected,
the RTS line remains high level. Next SoCs with FIFOs will be able to use the
hardware handshake mode thanks to the RX FIFO.

Cyrille Pitchen (4):
  ARM: at91/dt: add a new DT property to support FIFOs on Atmel USARTs
  tty/serial: at91: fix some macro definitions to fit coding style
  tty/serial: at91: add support to FIFOs
  tty/serial: at91: use 32bit writes into TX FIFO when DMA is enabled

 .../devicetree/bindings/serial/atmel-usart.txt     |   3 +
 drivers/tty/serial/atmel_serial.c                  | 193 +++++++++++++----
 include/linux/atmel_serial.h                       | 240 ++++++++++++---------
 3 files changed, 293 insertions(+), 143 deletions(-)

-- 
1.8.2.2


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

end of thread, other threads:[~2015-06-29 13:29 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-11 16:20 [PATCH linux-next v2 0/4] tty/serial: at91: add support to FIFOs Cyrille Pitchen
2015-06-11 16:20 ` Cyrille Pitchen
2015-06-11 16:20 ` Cyrille Pitchen
2015-06-11 16:20 ` [PATCH linux-next v2 1/4] ARM: at91/dt: add a new DT property to support FIFOs on Atmel USARTs Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-18 16:39   ` Alexandre Belloni
2015-06-18 16:39     ` Alexandre Belloni
2015-06-29 13:00   ` Nicolas Ferre
2015-06-29 13:00     ` Nicolas Ferre
2015-06-29 13:00     ` Nicolas Ferre
2015-06-11 16:20 ` [PATCH linux-next v2 2/4] tty/serial: at91: fix some macro definitions to fit coding style Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-18 16:39   ` Alexandre Belloni
2015-06-18 16:39     ` Alexandre Belloni
2015-06-18 16:39     ` Alexandre Belloni
2015-06-29 13:00   ` Nicolas Ferre
2015-06-29 13:00     ` Nicolas Ferre
2015-06-29 13:00     ` Nicolas Ferre
2015-06-11 16:20 ` [PATCH linux-next v2 3/4] tty/serial: at91: add support to FIFOs Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-18 16:36   ` Alexandre Belloni
2015-06-18 16:36     ` Alexandre Belloni
2015-06-18 16:36     ` Alexandre Belloni
2015-06-29 13:11   ` Nicolas Ferre
2015-06-29 13:11     ` Nicolas Ferre
2015-06-29 13:11     ` Nicolas Ferre
2015-06-11 16:20 ` [PATCH linux-next v2 4/4] tty/serial: at91: use 32bit writes into TX FIFO when DMA is enabled Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-11 16:20   ` Cyrille Pitchen
2015-06-29 13:28   ` Nicolas Ferre
2015-06-29 13:28     ` Nicolas Ferre
2015-06-29 13:28     ` Nicolas Ferre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.