Skip to content

Commit ae2bc5c

Browse files
author
Marius Cristea
committed
iio: adc: adding support for PAC193x
This is the iio driver for Microchip PAC193X series of Power Monitor with Accumulator chip family. Signed-off-by: Marius Cristea <marius.cristea@microchip.com>
1 parent ad89d58 commit ae2bc5c

5 files changed

Lines changed: 1665 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/in_shunt_resistorY
2+
KernelVersion: 6.7
3+
Contact: linux-iio@vger.kernel.org
4+
Description:
5+
The value of the shunt resistor may be known only at runtime
6+
and set by a client application. This attribute allows to
7+
set its value in micro-ohms. X is the IIO index of the device.
8+
Y is the channel number. The value is used to calculate
9+
current, power and accumulated energy.

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14047,6 +14047,13 @@ F: Documentation/devicetree/bindings/nvmem/microchip,sama7g5-otpc.yaml
1404714047
F: drivers/nvmem/microchip-otpc.c
1404814048
F: include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
1404914049

14050+
MICROCHIP PAC1934 POWER/ENERGY MONITOR DRIVER
14051+
M: Marius Cristea <marius.cristea@microchip.com>
14052+
L: linux-iio@vger.kernel.org
14053+
S: Supported
14054+
F: Documentation/devicetree/bindings/iio/adc/microchip,pac1934.yaml
14055+
F: drivers/iio/adc/pac1934.c
14056+
1405014057
MICROCHIP PCI1XXXX GP DRIVER
1405114058
M: Vaibhaav Ram T.L <vaibhaavram.tl@microchip.com>
1405214059
M: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>

drivers/iio/adc/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,17 @@ config NPCM_ADC
878878
This driver can also be built as a module. If so, the module
879879
will be called npcm_adc.
880880

881+
config PAC1934
882+
tristate "Microchip Technology PAC1934 driver"
883+
depends on I2C
884+
help
885+
Say yes here to build support for Microchip Technology's PAC1931,
886+
PAC1932, PAC1933, PAC1934 Single/Multi-Channel Power Monitor with
887+
Accumulator.
888+
889+
This driver can also be built as a module. If so, the module
890+
will be called pac1934.
891+
881892
config PALMAS_GPADC
882893
tristate "TI Palmas General Purpose ADC"
883894
depends on MFD_PALMAS

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ obj-$(CONFIG_MP2629_ADC) += mp2629_adc.o
8181
obj-$(CONFIG_MXS_LRADC_ADC) += mxs-lradc-adc.o
8282
obj-$(CONFIG_NAU7802) += nau7802.o
8383
obj-$(CONFIG_NPCM_ADC) += npcm_adc.o
84+
obj-$(CONFIG_PAC1934) += pac1934.o
8485
obj-$(CONFIG_PALMAS_GPADC) += palmas_gpadc.o
8586
obj-$(CONFIG_QCOM_SPMI_ADC5) += qcom-spmi-adc5.o
8687
obj-$(CONFIG_QCOM_SPMI_IADC) += qcom-spmi-iadc.o

0 commit comments

Comments
 (0)