spi: Add Nuvoton MA35D1 SPI controller support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 5 repliesIn review
- v12 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Extend the existing MA35D1 QSPI binding to also cover the SPI controller.
- Add GPIO chip-select support to the MA35D1 QSPI driver and allow cs-gpios in the shared binding.
- Remove the unnecessary SSCTL spinlock from the SPI driver.
- Cache the controller clock rate instead of querying it for every transfer.
- Rely on the SPI core for transfer defaults and validation.
- Avoid disabling and re-enabling the controller when the transfer configuration has not changed.
- Add per-word delay handling to the SPI PIO transfer path.
- Add system sleep support using the SPI core suspend/resume helpers.
- Rebase on the current broonie/spi.git for-7.4 branch.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | spi: dt-bindings: nuvoton,ma35d1-qspi: Add MA35D1 SPI controllerDocumentation/ | +37 | 2 replies | |
| 2/3 | spi: ma35d1: Add Nuvoton MA35D1 SPI controller supportdrivers/ drivers/ drivers/ | +728 | 1 reply | |
| 3/3 | spi: ma35d1-qspi: Add GPIO chip select supportdrivers/ | +34 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] spi: Add Nuvoton MA35D1 SPI controller support
From: Chi-Wen Weng <[email protected]>
This series adds support for the SPI controller found on the Nuvoton MA35D1 SoC.
The MA35D1 provides separate SPI and QSPI controller IPs. They expose the same Devicetree-visible resources and provide up to two native chip selects, so the existing MA35D1 QSPI binding is extended to also cover the SPI controller.
The SPI driver supports host mode using polling-based PIO transfers, SPI modes 0 through 3, 8 to 32 bits per word, LSB-first transfers, native chip selects and GPIO chip selects. The PIO path also honors per-word delays requested through struct spi_transfer.
The existing MA35D1 QSPI driver is updated separately to support GPIO chip selects through the SPI core. SPI-mem operations for devices using GPIO chip selects fall back to the regular SPI transfer path, while native chip selects continue to use the controller's SSCTL register.
This series is based on the current broonie/spi.git for-7.4 branch and therefore includes the already applied MA35D1 QSPI reset handling and DTR follow-up fixes.
Changes in v2:
- Extend the existing MA35D1 QSPI binding to also cover the SPI controller.
- Add GPIO chip-select support to the MA35D1 QSPI driver and allow cs-gpios in the shared binding.
- Remove the unnecessary SSCTL spinlock from the SPI driver.
- Cache the controller clock rate instead of querying it for every transfer.
- Rely on the SPI core for transfer defaults and validation.
- Avoid disabling and re-enabling the controller when the transfer configuration has not changed.
- Add per-word delay handling to the SPI PIO transfer path.
- Add system sleep support using the SPI core suspend/resume helpers.
- Rebase on the current broonie/spi.git for-7.4 branch.
Based on:
broonie/spi.git for-7.4
93914f171867 ("Add enhance SPI DMA support for JHB100 SFC")
Chi-Wen Weng (3):
spi: dt-bindings: nuvoton,ma35d1-qspi: Add MA35D1 SPI controller
spi: ma35d1: Add Nuvoton MA35D1 SPI controller support
spi: ma35d1-qspi: Add GPIO chip select support
.../bindings/spi/nuvoton,ma35d1-qspi.yaml | 41 +- drivers/spi/Kconfig | 11 + drivers/spi/Makefile | 1 + drivers/spi/spi-ma35d1-qspi.c | 39 +- drivers/spi/spi-ma35d1.c | 716 ++++++++++++++++++ 5 files changed, 799 insertions(+), 9 deletions(-) create mode 100644 drivers/spi/spi-ma35d1.c
base-commit: 93914f1718676aec13ccd3787642c8b05e2b8309
Signature · 1 line
2.25.1