All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Driver for AT91 USART in SPI mode
@ 2018-04-13 16:11 ` Radu Pirea
  0 siblings, 0 replies; 30+ messages in thread
From: Radu Pirea @ 2018-04-13 16:11 UTC (permalink / raw)
  To: broonie, nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland,
	linux-kernel, linux-spi, linux-arm-kernel, devicetree
  Cc: Radu Pirea

Hello,

I wrote this driver for USART IP that is found in AT91 and SAMA5 SoCs. The
IP has an internal chip select, but is not used because is deasserted and
asserted after every byte sent over the wires. Gpio chip selects are used
instead of internal one. The driver works with actual USART nodes from
device tree of boards, but compatible must be changed, SCK pin muxed and
cs-gpio, size-cells and address-cells must be added. Of course, at the end
of the wires must be an SPI slave linked, not a serial console. :)

I tested the driver on sama5d4-xplained and sama5d3-xplained and works
without issues.

Radu Pirea (3):
  MAINTAINERS: add usart spi driver
  dt-bindings: add binding for at91-usart in spi mode
  spi: at91-usart: add driver for at91-usart as spi

 .../bindings/spi/microchip,at91-usart-spi.txt |  24 +
 MAINTAINERS                                   |   7 +
 drivers/spi/Kconfig                           |   8 +
 drivers/spi/Makefile                          |   1 +
 drivers/spi/spi-at91-usart.c                  | 545 ++++++++++++++++++
 5 files changed, 585 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/microchip,at91-usart-spi.txt
 create mode 100644 drivers/spi/spi-at91-usart.c

-- 
2.17.0

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

end of thread, other threads:[~2018-04-19 14:55 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-13 16:11 [PATCH 0/3] Driver for AT91 USART in SPI mode Radu Pirea
2018-04-13 16:11 ` Radu Pirea
2018-04-13 16:11 ` Radu Pirea
2018-04-13 16:11 ` [PATCH 1/3] MAINTAINERS: add usart spi driver Radu Pirea
2018-04-13 16:11   ` Radu Pirea
2018-04-13 16:11   ` Radu Pirea
2018-04-13 16:11 ` [PATCH 2/3] dt-bindings: add binding for at91-usart in spi mode Radu Pirea
2018-04-13 16:11   ` Radu Pirea
2018-04-13 16:11   ` Radu Pirea
2018-04-13 16:23   ` Alexandre Belloni
2018-04-13 16:23     ` Alexandre Belloni
2018-04-13 17:12     ` Nicolas Ferre
2018-04-13 17:12       ` Nicolas Ferre
2018-04-13 17:12       ` Nicolas Ferre
2018-04-13 18:12       ` Alexandre Belloni
2018-04-13 18:12         ` Alexandre Belloni
2018-04-17 11:03         ` Mark Brown
2018-04-17 11:03           ` Mark Brown
2018-04-19 10:04           ` Radu Pirea
2018-04-19 10:04             ` Radu Pirea
2018-04-19 10:04             ` Radu Pirea
2018-04-19 14:55             ` Mark Brown
2018-04-19 14:55               ` Mark Brown
2018-04-19 13:32           ` Alexandre Belloni
2018-04-19 13:32             ` Alexandre Belloni
2018-04-19 14:07             ` Mark Brown
2018-04-19 14:07               ` Mark Brown
2018-04-13 16:11 ` [PATCH 3/3] spi: at91-usart: add driver for at91-usart as spi Radu Pirea
2018-04-13 16:11   ` Radu Pirea
2018-04-13 16:11   ` Radu Pirea

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.