gpio: Add Delta TN48M CPLD GPIO driver
authorRobert Marko <robert.marko@sartura.hr>
Mon, 31 Jan 2022 13:30:45 +0000 (14:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Feb 2022 08:59:35 +0000 (09:59 +0100)
commitb3dcb5de62092406bea6d5d03e32824d823fcd39
tree064d54ac22d4a1e8da3a7d7f70d394387220e7eb
parentd0cac2434c8ecd4863e082d976f5db9405d14b80
gpio: Add Delta TN48M CPLD GPIO driver

Delta TN48M switch has an onboard Lattice CPLD that is used as a GPIO
expander.

The CPLD provides 12 pins in total on the TN48M, but on more advanced
switch models it provides up to 192 pins, so the driver is extendable
to support more switches.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Link: https://lore.kernel.org/r/20220131133049.77780-3-robert.marko@sartura.hr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-tn48m.c [new file with mode: 0644]