Re: [PATCH 3/3] iio: adc: Add support for PMIC7 ADC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 24, 2020 at 09:14:10PM +0530, Jishnu Prakash wrote:
> 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.
> 
> In addition, add definitions for ADC channels and virtual channel
> definitions per PMIC, to be used by ADC clients for PMIC7.
> 
> Signed-off-by: Jishnu Prakash <jprakash@xxxxxxxxxxxxxx>
> ---
>  drivers/iio/adc/qcom-spmi-adc5.c                 | 239 ++++++++++++++++++++-
>  drivers/iio/adc/qcom-vadc-common.c               | 260 +++++++++++++++++++++++
>  drivers/iio/adc/qcom-vadc-common.h               |  14 ++
>  include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h  |  67 ++++++
>  include/dt-bindings/iio/qcom,spmi-adc7-pm8350b.h |  88 ++++++++
>  include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h |  46 ++++
>  include/dt-bindings/iio/qcom,spmi-adc7-pmr735a.h |  28 +++
>  include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h |  28 +++
>  include/dt-bindings/iio/qcom,spmi-vadc.h         |  78 ++++++-

DT headers go in the binding patch(es).

>  9 files changed, 843 insertions(+), 5 deletions(-)
>  create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h
>  create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pm8350b.h
>  create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h
>  create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmr735a.h
>  create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux