[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1585064650-16235-1-git-send-email-jprakash@codeaurora.org>
Date: Tue, 24 Mar 2020 21:14:07 +0530
From: Jishnu Prakash <jprakash@...eaurora.org>
To: agross@...nel.org, bjorn.andersson@...aro.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
mka@...omium.org, linus.walleij@...aro.org, sboyd@...eaurora.org,
Jonathan.Cameron@...wei.com, smohanad@...eaurora.org,
kgunda@...eaurora.org, aghayal@...eaurora.org
Cc: linux-arm-msm@...r.kernel.org, linux-arm-msm-owner@...r.kernel.org,
Jishnu Prakash <jprakash@...eaurora.org>
Subject: [PATCH 0/3] iio: adc: Add support for QCOM SPMI PMIC7 ADC
The first patch converts the ADC DT bindings from .txt to .yaml format.
The second patch updates the documentation, for PMIC7 ADC. The main
difference between PMIC5 and PMIC7 for ADC is that for PMIC7, SW requests to
ADCs (on any PMIC) need to go through the ADC on PMK8350, which communicates with
the ADCs on other PMICs through PBS. A SID register has been added for SW to specify
the PMIC with which it needs to communicate.
The third patch adds driver support for PMIC7 ADC. It also adds definitions for
PMIC7 ADC channels and virtual channel definitions per PMIC (made by combining ADC
channel number and PMIC SID), to be used by ADC clients for PMIC7.
Jishnu Prakash (3):
iio: adc: Convert the QCOM SPMI ADC bindings to .yaml format
iio: adc: Add PMIC7 ADC bindings
iio: adc: Add support for PMIC7 ADC
.../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 173 --------------
.../bindings/iio/adc/qcom,spmi-vadc.yaml | 192 +++++++++++++++
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 ++++++-
11 files changed, 1035 insertions(+), 178 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt
create mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
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
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists