pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 12 Jan 2021 00:58:40 +0000 (09:58 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 19 Feb 2021 07:18:01 +0000 (23:18 -0800)
commitd4c34d09ab03e1e631fe195ddf35365a1273be9c
tree0c942a73fbaf73c97b3bf3a16557554116ef78c3
parent5da9cbd2b200369fd190c81bc1253e9a17ab3e8d
pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver

Add the pinctrl-k210.c pinctrl driver for the Canaan Kendryte K210
field programmable IO array (FPIOA) to allow configuring the SoC pin
functions. The K210 has 48 programmable pins which can take any of 256
possible functions.

This patch is inspired from the k210 pinctrl driver for the u-boot
project and contains many direct contributions from Sean Anderson.

The MAINTAINERS file is updated, adding the entry "CANAAN/KENDRYTE K210
SOC FPIOA DRIVER" with myself listed as maintainer for this driver.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
MAINTAINERS
arch/riscv/Kconfig.socs
drivers/pinctrl/Kconfig
drivers/pinctrl/Makefile
drivers/pinctrl/pinctrl-k210.c [new file with mode: 0644]