Skip to content

tty/serial: at91: Add missing modem signals to atmel_serial.

Richard Genoud linux-arm-kernel linux-serial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tty/serial: at91: use dev_err instead of printkdrivers/tty/serial/atmel_serial.c+2 -20 replies
2/8tty/serial: at91: remove unused open/close hooksdrivers/tty/serial/atmel_serial.c+0 -210 replies
3/8tty/serial: at91: prepare for more gpio lines to comedrivers/tty/serial/atmel_serial.c+53 -200 replies
4/8tty/serial: at91: add cts control via gpioDocumentation/devicetree/bindings/serial/atmel-usart.txt arch/arm/mach-at91/at91rm9200_devices.c arch/arm/mach-at91/at91sam9260_devices.c +6 more+136 -100 replies
5/8tty/serial: at91: add dtr control via gpioDocumentation/devicetree/bindings/serial/atmel-usart.txt arch/arm/mach-at91/at91rm9200_devices.c arch/arm/mach-at91/at91sam9260_devices.c +6 more+47 -01 reply
5/8tty/serial: at91: add dtr control via gpio+0 -01 reply
6/8tty/serial: at91: add dsr control via gpioDocumentation/devicetree/bindings/serial/atmel-usart.txt arch/arm/mach-at91/at91rm9200_devices.c arch/arm/mach-at91/at91sam9260_devices.c +6 more+70 -10 replies
7/8tty/serial: at91: add ring control via gpioDocumentation/devicetree/bindings/serial/atmel-usart.txt arch/arm/mach-at91/at91rm9200_devices.c arch/arm/mach-at91/at91sam9260_devices.c +6 more+69 -10 replies
8/8tty/serial: at91: add dcd control via gpioDocumentation/devicetree/bindings/serial/atmel-usart.txt arch/arm/mach-at91/at91rm9200_devices.c arch/arm/mach-at91/at91sam9260_devices.c +6 more+69 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] tty/serial: at91: Add missing modem signals to atmel_serial.

The USART controller on sam9x5 chips (and also all AT91/SAMA5 chips but at91rm9200) are not capable of handling DTR/DSR/DCD/RI signal. Moreover, even if the controller can handle CTS/RTS, the dedicated CTS/RTS pins are already muxed for other peripherals (LCDC/EMAC/MMC).

So this patchset adds the possibility to control those lines via GPIO, as it is done for RTS in the patch "switch atmel serial to use gpiolib"

With all those signals, you'll finally get the best out of your brand new 33600 baud modem \o/.

And with the Ring Indicator, Atmel boards can now answer the phone !

This is based on 3.14-rc1 + Linus Walleij/Nicolas Ferre's patch:
354e57f3a0a2 ARM/serial: at91: switch atmel serial to use gpiolib
(in Uwe's tree git://git.pengutronix.de/git/ukl/linux.git dropmachtimexh )

Tested on at91sam9g35, with a null modem cable between 2 serial ports, one with CTS/RTS controlled by the USART controller, the other via GPIO, full duplex transfers.
Did some tests also with null modem cables on a PC.

Richard Genoud (8):
tty/serial: at91: use dev_err instead of printk tty/serial: at91: remove unused open/close hooks tty/serial: at91: prepare for more gpio lines to come tty/serial: at91: add cts control via gpio tty/serial: at91: add dtr control via gpio tty/serial: at91: add dsr control via gpio tty/serial: at91: add ring control via gpio tty/serial: at91: add dcd control via gpio

 .../devicetree/bindings/serial/atmel-usart.txt     |  15 +
 arch/arm/mach-at91/at91rm9200_devices.c            |  25 ++
 arch/arm/mach-at91/at91sam9260_devices.c           |  35 +++
 arch/arm/mach-at91/at91sam9261_devices.c           |  20 ++
 arch/arm/mach-at91/at91sam9263_devices.c           |  20 ++
 arch/arm/mach-at91/at91sam9g45_devices.c           |  25 ++
 arch/arm/mach-at91/at91sam9rl_devices.c            |  25 ++
 drivers/tty/serial/atmel_serial.c                  | 324 +++++++++++++++++----
 include/linux/platform_data/atmel.h                |   5 +
 9 files changed, 441 insertions(+), 53 deletions(-)
Signature · 1 line
1.8.5