Skip to content

spi: atmel: Add GCLK support and simplify MR update

Manikandan Muralidharan linux-arm-kernel linux-devicetree linux-spi lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 5 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

- Add cover letter
- 2/3 - add explanation for the spi_gclk addition

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3spi: atmel: simplify MR register update in cs_activate()drivers/spi/spi-atmel.c+2 -120 replies
2/3spi: dt-bindings: atmel,at91rm9200-spi: Add support for optional 'spi_gclk' clockDocumentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml+8 -31 reply
3/3spi: atmel: Add support for handling GCLK as a clock sourcedrivers/spi/spi-atmel.c+56 -80 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] spi: atmel: Add GCLK support and simplify MR update

This patch series introduces support for using the Generic Clock (GCLK) as a clock source in the Atmel SPI controller, and also includes a small cleanup to simplify MR register handling in cs_activate().

On platforms like the SAM9X7 SoC, the SPI peripheral clock can run at 266 MHz. This can exceed the maximum value supported by the Serial Clock Baud Rate (SCBR) divider, leading to SPI transfer failures. To address this, the Atmel SPI controller can use an alternate clock source — the Generic Clock (GCLK) — for SPCK generation.

--------
changes in v3:
- Add cover letter
- 2/3 - add explanation for the spi_gclk addition

changes in v2:
- 1/3 - Fixed mail threading
--------

Manikandan Muralidharan (3):
spi: atmel: simplify MR register update in cs_activate()
spi: dt-bindings: atmel,at91rm9200-spi: Add support for optional
'spi_gclk' clock
spi: atmel: Add support for handling GCLK as a clock source

 .../bindings/spi/atmel,at91rm9200-spi.yaml    | 11 ++-
 drivers/spi/spi-atmel.c                       | 78 ++++++++++++++-----
 2 files changed, 66 insertions(+), 23 deletions(-)

base-commit: 7e161a991ea71e6ec526abc8f40c6852ebe3d946

Signature · 1 line
2.25.1