Skip to content

arm64: exynos: Enable SPI for Exynos850

Sam Protsenko linux-arm-kernel linux-clk linux-devicetree linux-samsung-soc lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 11 repliesApplied
  2. v17 patches 10 repliesApplied

Changes in v2 from the cover letter

- Fixed indentation in clk patch to make checkpatch strict happy
- Ordered PDMA node by unit address
- Sorted pinctrl properties properly

[1] https://www.96boards.org/product/sensors-mezzanine/
[2] https://lore.kernel.org/all/[email protected]/

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3clk: samsung: exynos850: Propagate SPI IPCLK rate changedrivers/clk/samsung/clk-exynos850.c+17 -162 replies
2/3arm64: dts: exynos: Add PDMA node for Exynos850arch/arm64/boot/dts/exynos/exynos850.dtsi+10 -01 reply
3/3arm64: dts: exynos: Add SPI nodes for Exynos850arch/arm64/boot/dts/exynos/exynos850.dtsi+54 -08 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchTudor Ambarus
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] arm64: exynos: Enable SPI for Exynos850

This series enables SPI for Exynos850 SoC. The summary:

1. Enable PDMA, it's needed for SPI (dts, clk)
2. Propagate SPI src clock rate change up to DIV clocks, to make it possible to change SPI frequency (clk driver)
3. Add SPI nodes to Exynos850 SoC dtsi

All SPI instances were tested using `spidev_test' tool in all 3 possible modes:

- Polling mode: xfer_size <= 32
- IRQ mode: 64 >= xfer_size >= 32
- DMA mode: xfer_size > 64

with 200 kHz ... 49.9 MHz SPI frequencies. The next 3 approaches were used:

1. Software loopback ('-l' option for `spidev_test' tool)
2. Hardware loopback (by connecting MISO line to MOSI)
3. By communicating with ATMega found on Sensors Mezzanine board [1], programmed to act as an SPI slave device

and all the transactions were additionally checked on my Logic Analyzer to make sure the SCK frequencies were actually correct.

This series is supposed to go via Krzysztof's tree. SPI driver additions and corresponding bindings will be submitted in a separate series and are independent from this one.

Changes in v2:
- Fixed indentation in clk patch to make checkpatch strict happy
- Ordered PDMA node by unit address
- Sorted pinctrl properties properly

[1] https://www.96boards.org/product/sensors-mezzanine/
[2] https://lore.kernel.org/all/[email protected]/

Sam Protsenko (3):
clk: samsung: exynos850: Propagate SPI IPCLK rate change
arm64: dts: exynos: Add PDMA node for Exynos850
arm64: dts: exynos: Add SPI nodes for Exynos850

 arch/arm64/boot/dts/exynos/exynos850.dtsi | 64 +++++++++++++++++++++++
 drivers/clk/samsung/clk-exynos850.c       | 33 ++++++------
 2 files changed, 81 insertions(+), 16 deletions(-)
Signature · 1 line
2.39.2