mbox series

[0/5] spi support for Exynos Auto v9 SoC

Message ID 20220627064707.138883-1-chanho61.park@samsung.com (mailing list archive)
Headers show
Series spi support for Exynos Auto v9 SoC | expand

Message

Chanho Park June 27, 2022, 6:47 a.m. UTC
Add to support Exynos Auto v9 SoC's spi. By supporting USI(Universal
Serial Interface) mode, the SoC can support up to 12 spi ports. Thus, we
need to increase MAX_SPI_PORTS from 6 to 12. The spi of the SoC can
support loopback mode unlike previous exynos SoCs. To separate the
feature, we need to add .has_loopback to the s3c64xx_spi_port_config.
Furthermore, it uses 4 as the default internal clock divider. We also
need to clk_div field of the structure. If the value is specified, the
value will be used. Otherwise, "2" will be the default value of the
divider.
Device tree definitions of exynosautov9-spi will be added in separated
patchset to include usi(i2c/uart/spi) nodes all together.

Chanho Park (5):
  spi: spi-s3c64xx: increase MAX_SPI_PORTS to 12
  spi: s3c64xx: support loopback mode
  spi: s3c64xx: support custom value of internal clock divider
  dt-bindings: samsung,spi: define exynosautov9 compatible
  spi: s3c64xx: add spi port configuration for Exynos Auto v9 SoC

 .../devicetree/bindings/spi/samsung,spi.yaml  |  5 +-
 drivers/spi/spi-s3c64xx.c                     | 49 +++++++++++++++----
 2 files changed, 44 insertions(+), 10 deletions(-)