mbox series

[0/8] Nuvoton WPCM450 FIU SPI flash controller

Message ID 20221105185911.1547847-1-j.neuschaefer@gmx.net (mailing list archive)
Headers show
Series Nuvoton WPCM450 FIU SPI flash controller | expand

Message

J. Neuschäfer Nov. 5, 2022, 6:59 p.m. UTC
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.

This patchset depends on the WPCM450 clock support patchset,

	[PATCH v5 0/6] Nuvoton WPCM450 clock and reset driver


Jonathan


Jonathan Neuschäfer (8):
  pinctrl: nuvoton: wpcm450: Refactor MFSEL setting code
  pinctrl: nuvoton: wpcm450: Fix handling of inverted MFSEL bits
  dt-bindings: spi: Add Nuvoton WPCM450 Flash Interface Unit (FIU)
  dt-bindings: mfd: syscon: Add nuvoton,wpcm450-shm
  ARM: dts: wpcm450: Add FIU SPI controller node
  ARM: dts: wpcm450-supermicro-x9sci-ln4f: Add SPI flash
  spi: wpcm-fiu: Add driver for Nuvoton WPCM450 Flash Interface Unit
    (FIU)
  spi: wpcm-fiu: Add direct map support

 .../devicetree/bindings/mfd/syscon.yaml       |   1 +
 .../bindings/spi/nuvoton,wpcm450-fiu.yaml     |  76 +++
 .../nuvoton-wpcm450-supermicro-x9sci-ln4f.dts |   9 +
 arch/arm/boot/dts/nuvoton-wpcm450.dtsi        |  16 +
 drivers/pinctrl/nuvoton/pinctrl-wpcm450.c     |  32 +-
 drivers/spi/Kconfig                           |  11 +
 drivers/spi/Makefile                          |   1 +
 drivers/spi/spi-wpcm-fiu.c                    | 507 ++++++++++++++++++
 8 files changed, 644 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml
 create mode 100644 drivers/spi/spi-wpcm-fiu.c

--
2.35.1

Comments

Linus Walleij Nov. 9, 2022, 8:41 a.m. UTC | #1
On Sat, Nov 5, 2022 at 7:59 PM Jonathan Neuschäfer
<j.neuschaefer@gmx.net> wrote:

> Jonathan Neuschäfer (8):
>   pinctrl: nuvoton: wpcm450: Refactor MFSEL setting code
>   pinctrl: nuvoton: wpcm450: Fix handling of inverted MFSEL bits

I just applied these two patches to the pinctrl tree, it looks like they
can be applied independently of the others so I just did.

So no need to resend these or include me on subsequent patch
series.

Yours,
Linus Walleij
J. Neuschäfer Nov. 9, 2022, 10:08 a.m. UTC | #2
On Wed, Nov 09, 2022 at 09:41:04AM +0100, Linus Walleij wrote:
> On Sat, Nov 5, 2022 at 7:59 PM Jonathan Neuschäfer
> <j.neuschaefer@gmx.net> wrote:
>
> > Jonathan Neuschäfer (8):
> >   pinctrl: nuvoton: wpcm450: Refactor MFSEL setting code
> >   pinctrl: nuvoton: wpcm450: Fix handling of inverted MFSEL bits
>
> I just applied these two patches to the pinctrl tree, it looks like they
> can be applied independently of the others so I just did.

Yes, that's the intention.

>
> So no need to resend these or include me on subsequent patch
> series.

Thanks!
Jonathan