Skip to content

Commit 5aef97a

Browse files
YHYANG2jic23
authored andcommitted
iio: adc: add support for Nuvoton NCT7201
Add Nuvoton NCT7201/NCT7202 system voltage monitor 12-bit ADC driver NCT7201/NCT7202 supports up to 12 analog voltage monitor inputs and up to 4 SMBus addresses by ADDR pin. Meanwhile, ALERT# hardware event pins for independent alarm signals, and all the threshold values could be set for system protection without any timing delay. It also supports reset input RSTIN# to recover system from a fault condition. Currently, only single-edge mode conversion and threshold events are supported. Signed-off-by: Eason Yang <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent c8c2db3 commit 5aef97a

File tree

4 files changed

+514
-0
lines changed

4 files changed

+514
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17341,6 +17341,7 @@ M: Eason Yang <[email protected]>
1734117341
1734217342
S: Maintained
1734317343
F: Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
17344+
F: drivers/iio/adc/nct7201.c
1734417345

1734517346
NVIDIA (rivafb and nvidiafb) FRAMEBUFFER DRIVER
1734617347
M: Antonino Daplas <[email protected]>

drivers/iio/adc/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,17 @@ config NAU7802
11031103
To compile this driver as a module, choose M here: the
11041104
module will be called nau7802.
11051105

1106+
config NCT7201
1107+
tristate "Nuvoton Instruments NCT7201 and NCT7202 Power Monitor"
1108+
depends on I2C
1109+
select REGMAP_I2C
1110+
help
1111+
If you say yes here you get support for the Nuvoton NCT7201 and
1112+
NCT7202 Voltage Monitor.
1113+
1114+
This driver can also be built as a module. If so, the module
1115+
will be called nct7201.
1116+
11061117
config NPCM_ADC
11071118
tristate "Nuvoton NPCM ADC driver"
11081119
depends on ARCH_NPCM || COMPILE_TEST

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ obj-$(CONFIG_MESON_SARADC) += meson_saradc.o
9999
obj-$(CONFIG_MP2629_ADC) += mp2629_adc.o
100100
obj-$(CONFIG_MXS_LRADC_ADC) += mxs-lradc-adc.o
101101
obj-$(CONFIG_NAU7802) += nau7802.o
102+
obj-$(CONFIG_NCT7201) += nct7201.o
102103
obj-$(CONFIG_NPCM_ADC) += npcm_adc.o
103104
obj-$(CONFIG_PAC1921) += pac1921.o
104105
obj-$(CONFIG_PAC1934) += pac1934.o

0 commit comments

Comments
 (0)