Skip to content

Commit 51dad33

Browse files
m1ng1109lag-linaro
authored andcommitted
mfd: Add core driver for Nuvoton NCT6694
The Nuvoton NCT6694 provides an USB interface to the host to access its features. Sub-devices can use the USB functions nct6694_read_msg() and nct6694_write_msg() to issue a command. They can also request interrupt that will be called when the USB device receives its interrupt pipe. Signed-off-by: Ming Yu <a0282524688@gmail.com> Link: https://lore.kernel.org/r/20250912091952.1169369-2-a0282524688@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 8f5ae30 commit 51dad33

5 files changed

Lines changed: 513 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18082,6 +18082,12 @@ F: drivers/nubus/
1808218082
F: include/linux/nubus.h
1808318083
F: include/uapi/linux/nubus.h
1808418084

18085+
NUVOTON NCT6694 MFD DRIVER
18086+
M: Ming Yu <tmyu0@nuvoton.com>
18087+
S: Supported
18088+
F: drivers/mfd/nct6694.c
18089+
F: include/linux/mfd/nct6694.h
18090+
1808518091
NUVOTON NCT7201 IIO DRIVER
1808618092
M: Eason Yang <j2anfernee@gmail.com>
1808718093
L: linux-iio@vger.kernel.org

drivers/mfd/Kconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,21 @@ config MFD_MENF21BMC
11341134
This driver can also be built as a module. If so the module
11351135
will be called menf21bmc.
11361136

1137+
config MFD_NCT6694
1138+
tristate "Nuvoton NCT6694 support"
1139+
select MFD_CORE
1140+
depends on USB
1141+
help
1142+
This enables support for the Nuvoton USB device NCT6694, which shares
1143+
peripherals.
1144+
The Nuvoton NCT6694 is a peripheral expander with 16 GPIO chips,
1145+
6 I2C controllers, 2 CANfd controllers, 2 Watchdog timers, ADC,
1146+
PWM, and RTC.
1147+
This driver provides core APIs to access the NCT6694 hardware
1148+
monitoring and control features.
1149+
Additional drivers must be enabled to utilize the specific
1150+
functionalities of the device.
1151+
11371152
config MFD_OCELOT
11381153
tristate "Microsemi Ocelot External Control Support"
11391154
depends on SPI_MASTER

drivers/mfd/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o
121121
obj-$(CONFIG_MFD_MC13XXX_SPI) += mc13xxx-spi.o
122122
obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o
123123

124+
obj-$(CONFIG_MFD_NCT6694) += nct6694.o
125+
124126
obj-$(CONFIG_MFD_CORE) += mfd-core.o
125127

126128
ocelot-soc-objs := ocelot-core.o ocelot-spi.o

0 commit comments

Comments
 (0)