devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] arm64: exynos: Enable SPI for Exynos850
@ 2024-01-20  1:29 Sam Protsenko
  2024-01-20  1:29 ` [PATCH 1/7] dt-bindings: clock: exynos850: Add PDMA clocks Sam Protsenko
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Sam Protsenko @ 2024-01-20  1:29 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andi Shyti, Mark Brown, Rob Herring,
	Conor Dooley
  Cc: Alim Akhtar, Sylwester Nawrocki, Tomasz Figa, Chanwoo Choi,
	linux-spi, linux-samsung-soc, devicetree, linux-kernel,
	linux-arm-kernel, linux-clk

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 Exynos850 support in SPI driver
  4. 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.

[1] https://www.96boards.org/product/sensors-mezzanine/

Sam Protsenko (7):
  dt-bindings: clock: exynos850: Add PDMA clocks
  dt-bindings: spi: samsung: Add Exynos850 SPI
  clk: samsung: exynos850: Add PDMA clocks
  clk: samsung: exynos850: Propagate SPI IPCLK rate change
  spi: s3c64xx: Add Exynos850 support
  arm64: dts: exynos: Add PDMA node for Exynos850
  arm64: dts: exynos: Add SPI nodes for Exynos850

 .../devicetree/bindings/spi/samsung,spi.yaml  |  1 +
 arch/arm64/boot/dts/exynos/exynos850.dtsi     | 64 +++++++++++++++++++
 drivers/clk/samsung/clk-exynos850.c           | 42 +++++++-----
 drivers/spi/spi-s3c64xx.c                     | 14 ++++
 include/dt-bindings/clock/exynos850.h         |  2 +
 5 files changed, 106 insertions(+), 17 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-01-25 14:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-20  1:29 [PATCH 0/7] arm64: exynos: Enable SPI for Exynos850 Sam Protsenko
2024-01-20  1:29 ` [PATCH 1/7] dt-bindings: clock: exynos850: Add PDMA clocks Sam Protsenko
2024-01-23 12:54   ` (subset) " Krzysztof Kozlowski
2024-01-20  1:29 ` [PATCH 2/7] dt-bindings: spi: samsung: Add Exynos850 SPI Sam Protsenko
2024-01-23 12:22   ` Krzysztof Kozlowski
2024-01-24  6:32   ` Tudor Ambarus
2024-01-20  1:29 ` [PATCH 3/7] clk: samsung: exynos850: Add PDMA clocks Sam Protsenko
2024-01-23 12:54   ` (subset) " Krzysztof Kozlowski
2024-01-20  1:29 ` [PATCH 4/7] clk: samsung: exynos850: Propagate SPI IPCLK rate change Sam Protsenko
2024-01-23 12:49   ` Krzysztof Kozlowski
2024-01-20  1:29 ` [PATCH 5/7] spi: s3c64xx: Add Exynos850 support Sam Protsenko
2024-01-24  6:49   ` Tudor Ambarus
2024-01-24 19:51     ` Sam Protsenko
2024-01-20  1:29 ` [PATCH 6/7] arm64: dts: exynos: Add PDMA node for Exynos850 Sam Protsenko
2024-01-23 12:55   ` Krzysztof Kozlowski
2024-01-20  1:29 ` [PATCH 7/7] arm64: dts: exynos: Add SPI nodes " Sam Protsenko
2024-01-23 12:56   ` Krzysztof Kozlowski
2024-01-25 14:02 ` (subset) [PATCH 0/7] arm64: exynos: Enable SPI " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).