Skip to content

atmel-spi: Allow using more than 4 GPIOs as CS

Gregory CLEMENT linux-arm-kernel linux-spi lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7spi: atmel: Remove and fix erroneous commentsdrivers/spi/spi-atmel.c+3 -71 reply
2/7spi: atmel: Fix CS high supportdrivers/spi/spi-atmel.c+2 -41 reply
3/7spi: atmel: Configure GPIO per CS instead of by controllerdrivers/spi/spi-atmel.c+8 -241 reply
4/7spi: atmel: Remove useless private fielddrivers/spi/spi-atmel.c+6 -111 reply
5/7spi: atmel: Remove platform data supportdrivers/spi/Kconfig drivers/spi/spi-atmel.c+3 -141 reply
6/7spi: atmel: Improve and fix GPIO CS usagedrivers/spi/spi-atmel.c+66 -81 reply
7/7spi: atmel: Improve CS0 case support on AT91RM9200drivers/spi/spi-atmel.c+12 -31 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] atmel-spi: Allow using more than 4 GPIOs as CS

Hello,

the main purpose of this series is allowing to use more than 4 GPIOs as CS. But while doing it, I also clean-up the code and the comments to match the actual support of the hardware.

Thanks to this series, it is now more clear to see what can be done with CS GPIO and native CS. It is also possible to mix native and GPIO CS as expected by the SPI binding.

In the end even managment of the specific use case for CS0 on AT91RM9200 has been simplified.

Gregory

Gregory CLEMENT (7):
spi: atmel: Remove and fix erroneous comments
spi: atmel: Fix CS high support
spi: atmel: Configure GPIO per CS instead of by controller
spi: atmel: Remove useless private field
spi: atmel: Remove platform data support
spi: atmel: Improve and fix GPIO CS usage
spi: atmel: Improve CS0 case support on AT91RM9200

 drivers/spi/Kconfig     |   1 +
 drivers/spi/spi-atmel.c | 154 ++++++++++++++++++++++++----------------
 2 files changed, 92 insertions(+), 63 deletions(-)
Signature · 1 line
2.23.0