Skip to content

Commit 3587914

Browse files
AngeloGioacchino Del Regnojic23
authored andcommitted
iio: adc: Add support for MediaTek MT6357/8/9 Auxiliary ADC
Add a driver to support reading the Auxiliary ADC IP found in the MediaTek MT6357, MT6358 and MT6359 Power Management ICs, featuring a different register layout, configuration reset and ADC reading sequence from the other already supported MediaTek SoC or PMIC (aux)ADC HW. This driver provides multiple ADC channels for system monitoring, such as battery voltage, PMIC temperature, PMIC-internal voltage regulators temperature, and others. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent e38a82d commit 3587914

File tree

3 files changed

+619
-0
lines changed

3 files changed

+619
-0
lines changed

drivers/iio/adc/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,18 @@ config MCP3911
892892
This driver can also be built as a module. If so, the module will be
893893
called mcp3911.
894894

895+
config MEDIATEK_MT6359_AUXADC
896+
tristate "MediaTek MT6359 PMIC AUXADC driver"
897+
depends on MFD_MT6397
898+
help
899+
Say yes here to enable support for MediaTek MT6357, MT6358 and
900+
MT6359 PMICs Auxiliary ADC.
901+
This driver provides multiple channels for system monitoring,
902+
such as battery voltage, PMIC temperature, and others.
903+
904+
This driver can also be built as a module. If so, the module will be
905+
called mt6359-auxadc.
906+
895907
config MEDIATEK_MT6360_ADC
896908
tristate "Mediatek MT6360 ADC driver"
897909
depends on MFD_MT6360

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ obj-$(CONFIG_MCP320X) += mcp320x.o
8080
obj-$(CONFIG_MCP3422) += mcp3422.o
8181
obj-$(CONFIG_MCP3564) += mcp3564.o
8282
obj-$(CONFIG_MCP3911) += mcp3911.o
83+
obj-$(CONFIG_MEDIATEK_MT6359_AUXADC) += mt6359-auxadc.o
8384
obj-$(CONFIG_MEDIATEK_MT6360_ADC) += mt6360-adc.o
8485
obj-$(CONFIG_MEDIATEK_MT6370_ADC) += mt6370-adc.o
8586
obj-$(CONFIG_MEDIATEK_MT6577_AUXADC) += mt6577_auxadc.o

0 commit comments

Comments
 (0)