lkml.org 
[lkml]   [2020]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] iio: adc: Add support for PMIC7 ADC
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@codeaurora.org>
> ---
> 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

\
 
 \ /
  Last update: 2020-03-31 22:07    [W:0.244 / U:7.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site