[PATCH v3 0/1] add device driver for Nuvoton SIO gpio function
From: Henning Schild
Date: Tue Jul 12 2022 - 10:33:36 EST
changes since v2:
- move from subsys_initcall to module_init
- add 2 more patches to show how it can be used later
- v2 is based on [PATCH v6 00/12] platform/x86: introduce p2sb_bar() helper
changes since v1:
- implement get_direction function
- style changes requested in review
This adds gpio support for several Super IO chips from Nuvoton. The
driver was originally developed by Nuvoton and i am just contributing it
on behalf, because other patches i will send later will require access
to the gpios. The driver is valid on its own.
In fact v2 of this series shows a future user, not to be merged right
away but to show what is planned.
The driver supports several chips, of which i only managed to test one
but did not want to drop the others.
I hope the original authors will help with the testing and addressing
review feedback. The changes i did so far mainly are inspired by similar
drivers and some just concern coding style. If more has to be done and
the original authors do not jump in, we might start off with just that
one chip i can test and add the others later on.
Henning Schild (3):
gpio: nct6116d: add new driver for several Nuvoton super io chips
leds: simatic-ipc-leds-gpio: add new model 227G
platform/x86: simatic-ipc: enable watchdog for 227G
drivers/gpio/Kconfig | 9 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-nct6116d.c | 412 ++++++++++++++++++
drivers/leds/simple/simatic-ipc-leds-gpio.c | 42 +-
drivers/platform/x86/simatic-ipc.c | 7 +-
.../platform_data/x86/simatic-ipc-base.h | 1 +
include/linux/platform_data/x86/simatic-ipc.h | 1 +
7 files changed, 467 insertions(+), 6 deletions(-)
create mode 100644 drivers/gpio/gpio-nct6116d.c
--
2.35.1