From: Caleb Connolly <caleb.connolly@linaro.org>
To: caleb.connolly@linaro.org, sumit.semwal@linaro.org,
amit.pundir@linaro.org, john.stultz@linaro.org
Cc: Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh+dt@kernel.org>, Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Lee Jones <lee.jones@linaro.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
Caleb Connolly <caleb@connolly.tech>
Subject: [PATCH 0/7] iio: adc: introduce Qualcomm SPMI Round Robin ADC
Date: Sat, 11 Dec 2021 02:22:17 +0000 [thread overview]
Message-ID: <20211211022224.3488860-1-caleb@connolly.tech> (raw)
The RRADC is responsible for reading data about the current and
voltage from the USB or DC in jacks, it can also read the battery
ID (resistence) and some temperatures. It is found on the PMI8998 and
PM660 Qualcomm PMICs.
The RRADC has to calibrate some ADC values based on which chip fab
the PMIC was produced in, to facilitate this the patch
("mfd: qcom-spmi-pmic: expose the PMIC revid information to clients")
exposes the PMIC revision information as a struct and registers it
as driver data in the Qualcomm SPMI PMIC driver so that it can be
read by the RRADC.
Caleb Connolly (7):
mfd: qcom-spmi-pmic: expose the PMIC revid information to clients
dt-bindings: iio: adc: document qcom-spmi-rradc
iio: adc: qcom-spmi-rradc: introduce round robin adc
arm64: dts: qcom: pmi8998: add rradc node
arm64: dts: qcom: sdm845-oneplus: enable rradc
arm64: dts: qcom: sdm845-db845c: enable rradc
arm64: dts: qcom: sdm845-xiaomi-beryllium: enable RRADC
.../bindings/iio/adc/qcom,spmi-rradc.yaml | 54 +
arch/arm64/boot/dts/qcom/pmi8998.dtsi | 8 +
arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 4 +
.../boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 +
.../boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 4 +
drivers/iio/adc/Kconfig | 13 +
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/qcom-spmi-rradc.c | 1020 +++++++++++++++++
drivers/mfd/qcom-spmi-pmic.c | 103 +-
include/soc/qcom/qcom-pmic.h | 58 +
10 files changed, 1216 insertions(+), 53 deletions(-)
create mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml
create mode 100644 drivers/iio/adc/qcom-spmi-rradc.c
create mode 100644 include/soc/qcom/qcom-pmic.h
--
2.34.1
next reply other threads:[~2021-12-11 2:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-11 2:22 Caleb Connolly [this message]
2021-12-11 2:22 ` [PATCH 1/7] mfd: qcom-spmi-pmic: expose the PMIC revid information to clients Caleb Connolly
2021-12-12 17:27 ` Jonathan Cameron
2021-12-11 2:22 ` [PATCH 2/7] dt-bindings: iio: adc: document qcom-spmi-rradc Caleb Connolly
2021-12-15 19:56 ` Rob Herring
2021-12-11 2:22 ` [PATCH 3/7] iio: adc: qcom-spmi-rradc: introduce round robin adc Caleb Connolly
2021-12-12 18:12 ` Jonathan Cameron
2021-12-11 2:22 ` [PATCH 4/7] arm64: dts: qcom: pmi8998: add rradc node Caleb Connolly
2021-12-11 2:22 ` [PATCH 5/7] arm64: dts: qcom: sdm845-oneplus: enable rradc Caleb Connolly
2021-12-11 2:22 ` [PATCH 6/7] arm64: dts: qcom: sdm845-db845c: " Caleb Connolly
2021-12-11 2:22 ` [PATCH 7/7] arm64: dts: qcom: sdm845-xiaomi-beryllium: enable RRADC Caleb Connolly
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=20211211022224.3488860-1-caleb@connolly.tech \
--to=caleb.connolly@linaro.org \
--cc=agross@kernel.org \
--cc=amit.pundir@linaro.org \
--cc=bjorn.andersson@linaro.org \
--cc=caleb@connolly.tech \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=john.stultz@linaro.org \
--cc=lars@metafoo.de \
--cc=lee.jones@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sumit.semwal@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox