Add support for components requiring trailing clock after transfer
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 10 repliesIn review
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Provide the number of wanted clock cycles instead of just a bool.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | spi: Add optional number of additional clock cycles to be generatedDocumentation/ drivers/ include/ | +11 | 1 reply | |
| 2/2 | spi: fsl-spi: Implement trailing bitsdrivers/ | +19 | 9 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Rob Herring |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] Add support for components requiring trailing clock after transfer
Some components require a few clock cycles with chipselect off before or/and after the data transfer done with CS on.
Typically IDT 801034 QUAD PCM CODEC datasheet states "Note *: CCLK should have one cycle before CS goes low, and two cycles after CS goes high".
The cycles "before" are implicitely provided by all previous activity on the SPI bus. But the cycles "after" must be provided in order to achieve the SPI transfer.
In order to use that kind of component, implement a new option for SPI slaves in order to implement trailing clock of a given number of bits with ChipSelect off at the end of the transfer.
This is based on a discussion we had a few years ago, see
https://lore.kernel.org/linux-spi/[email protected]/
IDT 801034 QUAD PCM CODEC datasheet can be found at
https://www.renesas.com/eu/en/document/dst/821034-data-sheet?language=en&r=24763
Changes in v2:
- Provide the number of wanted clock cycles instead of just a bool.
Christophe Leroy (2):
spi: Add optional number of additional clock cycles to be generated
spi: fsl-spi: Implement trailing bits
.../bindings/spi/spi-peripheral-props.yaml | 5 +++++ drivers/spi/spi-fsl-spi.c | 21 +++++++++++++++++-- drivers/spi/spi.c | 7 +++++-- include/linux/spi/spi.h | 1 + 4 files changed, 30 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1