iio: adc: Add support for PMIC7 ADC
authorJishnu Prakash <jprakash@codeaurora.org>
Thu, 28 May 2020 16:54:26 +0000 (22:24 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:21 +0000 (11:49 +0100)
commit082111e559055de66da41303b15958c494c1b984
tree284d00a10239ce532905f4ef1414a77675c9a910
parent572e76e3819eaf828b229f984bf3704e560a74e5
iio: adc: Add support for PMIC7 ADC

The ADC architecture on PMIC7 is changed as compared to PMIC5. The
major change from PMIC5 is that all SW communication to ADC goes through
PMK8350, which communicates with other PMICs through PBS when the ADC
on PMK8350 works in master mode. The SID register is used to identify the
PMICs with which the PBS needs to communicate. Add support for the same.

Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/qcom-spmi-adc5.c
drivers/iio/adc/qcom-vadc-common.c
drivers/iio/adc/qcom-vadc-common.h