From: Jishnu Prakash <quic_jprakash@quicinc.com>
To: <agross@kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linus.walleij@linaro.org>,
<Jonathan.Cameron@huawei.com>, <sboyd@kernel.org>,
<dmitry.baryshkov@linaro.org>, <quic_subbaram@quicinc.com>,
<quic_collinsd@quicinc.com>, <quic_kamalw@quicinc.com>,
<quic_jestar@quicinc.com>, <marijn.suijten@somainline.org>,
<andriy.shevchenko@linux.intel.com>,
<krzysztof.kozlowski@linaro.org>
Cc: <linux-iio@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
<linux-arm-msm-owner@vger.kernel.org>,
Jishnu Prakash <quic_jprakash@quicinc.com>
Subject: [PATCH 00/11] iio: adc: Add support for QCOM SPMI PMIC5 Gen3 ADC
Date: Sat, 8 Jul 2023 12:58:24 +0530 [thread overview]
Message-ID: <20230708072835.3035398-1-quic_jprakash@quicinc.com> (raw)
PMIC5 Gen3 has a similar ADC architecture to that on PMIC5 Gen2,
with all SW communication to ADC going through PMK8550 which
communicates with other PMICs through PBS. The major difference is
that the register interface used here is that of an SDAM present on
PMK8550, rather than a dedicated ADC peripheral. There may be more than one
SDAM used for ADC5 Gen3. Each ADC SDAM has eight channels, each of which may
be used for either immediate reads (same functionality as previous PMIC5 and
PMIC5 Gen2 ADC peripherals) or recurring measurements (same as PMIC5 and PMIC5
Gen2 ADC_TM functionality). In this case, we have VADC and ADC_TM functionality
combined into the same driver.
Patches 1-5 update the name of the previous generation of PMIC5 ADC peripherals
from ADC7 to ADC5 Gen2, as this is the correct name and it makes more sense now
to update it, with the addition of the latest ADC5 Gen3 peripheral support.
Patches 6 and 7 add bindings and driver support respectively for ADC5 Gen3.
Patches 8-11 are for an additional change, where the QCOM ADC dt-bindings files
are moved from dt-bindings/iio to dt-bindings/iio/adc folder, as they are
specifically for ADC devices.
Jishnu Prakash (11):
iio: adc: Update bindings for ADC7 name used on QCOM PMICs
iio: adc: Update driver files for ADC7 rename for QCOM PMICs
ARM: dts: qcom: Update devicetree for ADC7 rename for QCOM PMICs
iio: adc: Update bindings to remove support for ADC7 name used on QCOM
PMICs
iio: adc: qcom-spmi-adc5: remove support for ADC7 compatible string
iio: adc: Add QCOM PMIC5 Gen3 ADC bindings
iio: adc: Add support for QCOM PMIC5 Gen3 ADC
dt-bindings: iio: adc: Copy QCOM ADC bindings files
iio: adc: Update QCOM ADC drivers for bindings path change
ARM: dts: qcom: Update devicetree for QCOM ADC bindings path change
dt-bindings: iio: remove QCOM ADC files from iio folder
.../bindings/iio/adc/qcom,spmi-vadc.yaml | 131 +-
.../bindings/thermal/qcom-spmi-adc-tm5.yaml | 19 +-
arch/arm64/boot/dts/qcom/pm6125.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm6150.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm6150l.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm660.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm660l.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm7250b.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8150.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8150b.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8150l.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8916.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8950.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8953.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8994.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8998.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pmi632.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pmi8950.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pmk8350.dtsi | 4 +-
arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pmp8074.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pms405.dtsi | 2 +-
arch/arm64/boot/dts/qcom/sc7280-idp.dts | 4 +-
arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 4 +-
arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 8 +-
.../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 48 +-
arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 2 +-
.../boot/dts/qcom/sm7225-fairphone-fp4.dts | 4 +-
drivers/iio/adc/Kconfig | 25 +
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/qcom-spmi-adc5-gen3.c | 1193 +++++++++++++++++
drivers/iio/adc/qcom-spmi-adc5.c | 93 +-
drivers/iio/adc/qcom-spmi-vadc.c | 2 +-
drivers/iio/adc/qcom-vadc-common.c | 36 +-
.../iio/adc/qcom,spmi-adc5-gen2-pm8350.h | 64 +
.../iio/adc/qcom,spmi-adc5-gen2-pm8350b.h | 89 ++
.../iio/adc/qcom,spmi-adc5-gen2-pmk8350.h | 47 +
.../iio/adc/qcom,spmi-adc5-gen2-pmr735a.h | 29 +
.../iio/adc/qcom,spmi-adc5-gen2-pmr735b.h | 28 +
.../iio/adc/qcom,spmi-adc5-gen3-pm8550.h | 48 +
.../iio/adc/qcom,spmi-adc5-gen3-pm8550b.h | 97 ++
.../iio/adc/qcom,spmi-adc5-gen3-pm8550vx.h | 20 +
.../iio/adc/qcom,spmi-adc5-gen3-pmk8550.h | 54 +
.../iio/{ => adc}/qcom,spmi-vadc.h | 209 ++-
.../dt-bindings/iio/qcom,spmi-adc7-pm8350.h | 63 -
.../dt-bindings/iio/qcom,spmi-adc7-pm8350b.h | 88 --
.../dt-bindings/iio/qcom,spmi-adc7-pmk8350.h | 46 -
.../dt-bindings/iio/qcom,spmi-adc7-pmr735a.h | 28 -
.../dt-bindings/iio/qcom,spmi-adc7-pmr735b.h | 28 -
include/linux/iio/adc/qcom-vadc-common.h | 12 +-
50 files changed, 2088 insertions(+), 474 deletions(-)
create mode 100644 drivers/iio/adc/qcom-spmi-adc5-gen3.c
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen2-pm8350.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen2-pm8350b.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen2-pmk8350.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen2-pmr735a.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen2-pmr735b.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550b.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550vx.h
create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pmk8550.h
rename include/dt-bindings/iio/{ => adc}/qcom,spmi-vadc.h (59%)
delete mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h
delete mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pm8350b.h
delete mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h
delete mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmr735a.h
delete mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h
--
2.25.1
next reply other threads:[~2023-07-08 7:29 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-08 7:28 Jishnu Prakash [this message]
2023-07-08 7:28 ` [PATCH 01/11] iio: adc: Update bindings for ADC7 name used on QCOM PMICs Jishnu Prakash
2023-07-08 14:58 ` Jonathan Cameron
2023-10-23 6:05 ` Jishnu Prakash
2023-10-23 9:56 ` Jonathan Cameron
2023-07-09 17:17 ` Krzysztof Kozlowski
2023-10-23 6:08 ` Jishnu Prakash
2023-07-08 7:28 ` [PATCH 02/11] iio: adc: Update driver files for ADC7 rename for " Jishnu Prakash
2023-07-08 7:28 ` [PATCH 03/11] ARM: dts: qcom: Update devicetree " Jishnu Prakash
2023-07-09 17:18 ` Krzysztof Kozlowski
2023-10-23 6:09 ` Jishnu Prakash
2023-10-23 6:32 ` Krzysztof Kozlowski
2023-11-09 8:22 ` Jishnu Prakash
2023-11-10 10:59 ` Krzysztof Kozlowski
2023-11-16 3:23 ` Jishnu Prakash
2023-07-08 7:28 ` [PATCH 04/11] iio: adc: Update bindings to remove support for ADC7 name used on " Jishnu Prakash
2023-07-08 15:02 ` Jonathan Cameron
2023-10-23 6:10 ` Jishnu Prakash
2023-07-09 17:19 ` Krzysztof Kozlowski
2023-10-23 6:11 ` Jishnu Prakash
2023-10-23 6:33 ` Krzysztof Kozlowski
2023-07-08 7:28 ` [PATCH 05/11] iio: adc: qcom-spmi-adc5: remove support for ADC7 compatible string Jishnu Prakash
2023-07-08 15:00 ` Jonathan Cameron
2023-10-23 6:11 ` Jishnu Prakash
2023-07-09 17:38 ` Krzysztof Kozlowski
2023-10-23 6:12 ` Jishnu Prakash
2023-07-08 7:28 ` [PATCH 06/11] iio: adc: Add QCOM PMIC5 Gen3 ADC bindings Jishnu Prakash
2023-07-08 15:12 ` Jonathan Cameron
2023-07-08 15:25 ` Jonathan Cameron
2023-10-23 6:13 ` Jishnu Prakash
2023-10-23 6:13 ` Jishnu Prakash
2023-07-09 17:23 ` Krzysztof Kozlowski
2023-10-23 6:14 ` Jishnu Prakash
2023-10-23 6:36 ` Krzysztof Kozlowski
2023-11-16 3:23 ` Jishnu Prakash
2023-11-16 11:40 ` Krzysztof Kozlowski
2023-11-16 11:46 ` Krzysztof Kozlowski
2023-12-21 8:01 ` Jishnu Prakash
2023-07-08 7:28 ` [PATCH 07/11] iio: adc: Add support for QCOM PMIC5 Gen3 ADC Jishnu Prakash
2023-07-08 15:59 ` Jonathan Cameron
2023-10-23 6:15 ` Jishnu Prakash
2023-10-23 8:03 ` Dmitry Baryshkov
2023-11-16 3:24 ` Jishnu Prakash
2023-10-27 13:26 ` Jonathan Cameron
2023-07-09 17:41 ` Krzysztof Kozlowski
2023-10-23 6:15 ` Jishnu Prakash
2023-07-08 7:28 ` [PATCH 08/11] dt-bindings: iio: adc: Copy QCOM ADC bindings files Jishnu Prakash
2023-07-09 17:25 ` Krzysztof Kozlowski
2023-10-23 6:16 ` Jishnu Prakash
2023-10-23 6:19 ` Krzysztof Kozlowski
2023-07-08 7:28 ` [PATCH 09/11] iio: adc: Update QCOM ADC drivers for bindings path change Jishnu Prakash
2023-07-08 15:23 ` Jonathan Cameron
2023-10-23 6:17 ` Jishnu Prakash
2023-10-23 7:58 ` Dmitry Baryshkov
2023-11-16 3:24 ` Jishnu Prakash
2023-07-08 7:28 ` [PATCH 10/11] ARM: dts: qcom: Update devicetree for QCOM ADC " Jishnu Prakash
2023-07-09 17:26 ` Krzysztof Kozlowski
2023-10-23 6:18 ` Jishnu Prakash
2023-10-23 6:38 ` Krzysztof Kozlowski
2023-11-10 23:47 ` Bjorn Andersson
2023-11-16 3:25 ` Jishnu Prakash
2023-07-09 17:26 ` Krzysztof Kozlowski
2023-10-23 6:18 ` Jishnu Prakash
2023-07-08 7:28 ` [PATCH 11/11] dt-bindings: iio: remove QCOM ADC files from iio folder Jishnu Prakash
2023-07-09 17:28 ` Krzysztof Kozlowski
2023-10-23 6:19 ` Jishnu Prakash
2023-10-23 6:40 ` Krzysztof Kozlowski
2023-07-08 15:13 ` [PATCH 00/11] iio: adc: Add support for QCOM SPMI PMIC5 Gen3 ADC Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230708072835.3035398-1-quic_jprakash@quicinc.com \
--to=quic_jprakash@quicinc.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=agross@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-msm-owner@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=quic_collinsd@quicinc.com \
--cc=quic_jestar@quicinc.com \
--cc=quic_kamalw@quicinc.com \
--cc=quic_subbaram@quicinc.com \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.