[PATCH v2 0/3] Nuvoton WPCM450 FIU SPI flash controller

From: Jonathan Neuschäfer
Date: Thu Nov 24 2022 - 14:14:20 EST


This patchset adds DT bindings and a driver for the Flash Interface Unit
(FIU), the SPI flash controller in the Nuvoton WPCM450 BMC SoC. It
supports four chip selects, and direct (memory-mapped) access to 16 MiB
per chip. Larger flash chips can be accessed by software-defined SPI
transfers.

The existing NPCM7xx FIU driver is sufficitently incompatible with the
WPCM450 FIU that I decided to write a new driver.

Changelog for v2:

- Dropped the patches which have been applied in the meantime, leaving
only three out of eight
- Changed the binding to require both items in the reg property, because
there is no need to keep the second item optional, suggested by
Krzysztof Kozlowski
- Various other cleanups suggested by Krzysztof Kozlowski and the kernel
test robot


Jonathan


Jonathan Neuschäfer (3):
dt-bindings: spi: Add Nuvoton WPCM450 Flash Interface Unit (FIU)
spi: wpcm-fiu: Add driver for Nuvoton WPCM450 Flash Interface Unit
(FIU)
spi: wpcm-fiu: Add direct map support

.../bindings/spi/nuvoton,wpcm450-fiu.yaml | 66 +++
drivers/spi/Kconfig | 11 +
drivers/spi/Makefile | 1 +
drivers/spi/spi-wpcm-fiu.c | 508 ++++++++++++++++++
4 files changed, 586 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml
create mode 100644 drivers/spi/spi-wpcm-fiu.c

--
2.35.1