Skip to content

spi-geni-qcom: QUP SPI GENI driver and SPI device tree bindings

Alok Chauhan linux-arm-msm linux-devicetree linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest3 patches 9 repliesIn review

Changes in v5 from the cover letter · 24 lines

- Patch 1/3 and 2/3 are unchanged
- squashed patch 4/4 into 3/4 as suggested
- Patch 3/3 changes are follows:
* Add SPI M_COMMAND OPCODE to handle different geni command handling
* Remove forward declaration of ISR
* Remove unused variable rx_fifo_depth in spi_master structure
* Declare cur_speed_hz as unsigned long to match clock framework
* Declare cur_xfer as const pointer
* Newline in error print
* Correct consecutive spelling
* Rename trans_len to len and restructure the lines in setup_fifo_xfer()
* Rename timeout to time_left and restructure the handle_fifo_timeout()
* Add check for '0' bytes transfer as part of spi_geni_transfer_one()
* Correct if-else check in geni_byte_per_fifo_word()
* Remove NULL current transfer check in geni_spi_handle_tx()/geni_spi_handle_rx() and make these functions as void.
* Hoist rx_last_byte_valid variable into function scope
* Remove RT check in ISR and add cur_mcmd handling
* Correct the error prints in ISR
* In spi_alloc_master() pass 2nd arg as sizeof(*mas) for code clarity
* Use ret = PTR_ERR(se->base) for devm_ioremap_resource() err return
* Move request irq code to probe() and used request_irq() in place of devm_request_irq()
* Rewrite suspend/resume function
* Add MODULE_DEVICE_TABLE(of, spi_geni_dt_match);
* Remove include/linux/spi/spi-geni-qcom.h file

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: soc: qcom: Remove SPI controller maximum frequency bindingDocumentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt+0 -20 replies
2/3dt-bindings: soc: qcom: GENI SE SPI controller device tree bindingDocumentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.txt+41 -250 replies
3/3spi: spi-geni-qcom: Add SPI driver support for GENI based QUPdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/spi-geni-qcom.c+716 -09 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDouglas AndersonStephen BoydRob Herring
1/3R-b R-b R-b
2/3R-b R-b R-b
3/3R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH V5 0/3] spi-geni-qcom: QUP SPI GENI driver and SPI device tree bindings

This patch series adds the driver for GENI based Qualcomm Universal Peripheral (QUP) Serial Peripheral Interface (SPI) and SPI device tree bindings.

An overview of the GENI SE SPI controller device tree components are in patch 2 and 1. Patch 3 adds the SPI driver for GENI QUP HW.

changes from v4:
- Patch 1/3 and 2/3 are unchanged
- squashed patch 4/4 into 3/4 as suggested
- Patch 3/3 changes are follows:
* Add SPI M_COMMAND OPCODE to handle different geni command handling
* Remove forward declaration of ISR
* Remove unused variable rx_fifo_depth in spi_master structure
* Declare cur_speed_hz as unsigned long to match clock framework
* Declare cur_xfer as const pointer
* Newline in error print
* Correct consecutive spelling
* Rename trans_len to len and restructure the lines in setup_fifo_xfer()
* Rename timeout to time_left and restructure the handle_fifo_timeout()
* Add check for '0' bytes transfer as part of spi_geni_transfer_one()
* Correct if-else check in geni_byte_per_fifo_word()
* Remove NULL current transfer check in geni_spi_handle_tx()/geni_spi_handle_rx() and make these functions as void.
* Hoist rx_last_byte_valid variable into function scope
* Remove RT check in ISR and add cur_mcmd handling
* Correct the error prints in ISR
* In spi_alloc_master() pass 2nd arg as sizeof(*mas) for code clarity
* Use ret = PTR_ERR(se->base) for devm_ioremap_resource() err return
* Move request irq code to probe() and used request_irq() in place of devm_request_irq()
* Rewrite suspend/resume function
* Add MODULE_DEVICE_TABLE(of, spi_geni_dt_match);
* Remove include/linux/spi/spi-geni-qcom.h file

Dilip Kota (2):
dt-bindings: soc: qcom: Remove SPI controller maximum frequency
binding
dt-bindings: soc: qcom: GENI SE SPI controller device tree binding

Girish Mahadevan (1):
spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

 .../devicetree/bindings/soc/qcom/qcom,geni-se.txt  |  29 +-
 .../devicetree/bindings/spi/qcom,spi-geni-qcom.txt |  39 ++
 drivers/spi/Kconfig                                |  12 +
 drivers/spi/Makefile                               |   1 +
 drivers/spi/spi-geni-qcom.c                        | 703 +++++++++++++++++++++
 5 files changed, 757 insertions(+), 27 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.txt
 create mode 100644 drivers/spi/spi-geni-qcom.c
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project