pinctrl: nuvoton: Add driver for WPCM450
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 29 Jan 2022 11:52:24 +0000 (12:52 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Mar 2022 00:16:20 +0000 (01:16 +0100)
commita1d1e0e3d80a870cc37a6c064994b89e963d2b58
tree59111ca514df394219e7af2c860adc0e53c8de6c
parent1a1e33b3b57d3051cbbaa1efc885c611c0e68ea9
pinctrl: nuvoton: Add driver for WPCM450

This driver is based on the one for NPCM7xx, because the WPCM450 is a
predecessor of those SoCs. Notable differences:

- On WPCM450, the GPIO registers are not organized in multiple banks,
  but rather placed continually into the same register block. This
  affects how register offsets are computed.
- Pinmux nodes can explicitly select GPIO mode, whereas in the npcm7xx
  driver, this happens automatically when a GPIO is requested.

Some functionality implemented in the hardware was (for now) left unused
in the driver, specifically blinking and pull-up/down.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20220129115228.2257310-6-j.neuschaefer@gmx.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
MAINTAINERS
drivers/pinctrl/Makefile
drivers/pinctrl/nuvoton/Kconfig
drivers/pinctrl/nuvoton/Makefile
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c [new file with mode: 0644]