Skip to content

Commit 611a995

Browse files
m1ng1109lag-linaro
authored andcommitted
gpio: Add Nuvoton NCT6694 GPIO support
This driver supports GPIO and IRQ functionality for NCT6694 MFD device based on USB interface. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Ming Yu <a0282524688@gmail.com> Link: https://lore.kernel.org/r/20250912091952.1169369-3-a0282524688@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 51dad33 commit 611a995

4 files changed

Lines changed: 513 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18085,6 +18085,7 @@ F: include/uapi/linux/nubus.h
1808518085
NUVOTON NCT6694 MFD DRIVER
1808618086
M: Ming Yu <tmyu0@nuvoton.com>
1808718087
S: Supported
18088+
F: drivers/gpio/gpio-nct6694.c
1808818089
F: drivers/mfd/nct6694.c
1808918090
F: include/linux/mfd/nct6694.h
1809018091

drivers/gpio/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,6 +1522,18 @@ config GPIO_MAX77759
15221522
This driver can also be built as a module. If so, the module will be
15231523
called gpio-max77759.
15241524

1525+
config GPIO_NCT6694
1526+
tristate "Nuvoton NCT6694 GPIO controller support"
1527+
depends on MFD_NCT6694
1528+
select GENERIC_IRQ_CHIP
1529+
select GPIOLIB_IRQCHIP
1530+
help
1531+
This driver supports 8 GPIO pins per bank that can all be interrupt
1532+
sources.
1533+
1534+
This driver can also be built as a module. If so, the module will be
1535+
called gpio-nct6694.
1536+
15251537
config GPIO_PALMAS
15261538
tristate "TI PALMAS series PMICs GPIO"
15271539
depends on MFD_PALMAS

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ obj-$(CONFIG_GPIO_MT7621) += gpio-mt7621.o
128128
obj-$(CONFIG_GPIO_MVEBU) += gpio-mvebu.o
129129
obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o
130130
obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o
131+
obj-$(CONFIG_GPIO_NCT6694) += gpio-nct6694.o
131132
obj-$(CONFIG_GPIO_NOMADIK) += gpio-nomadik.o
132133
obj-$(CONFIG_GPIO_NPCM_SGPIO) += gpio-npcm-sgpio.o
133134
obj-$(CONFIG_GPIO_OCTEON) += gpio-octeon.o

0 commit comments

Comments
 (0)