All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] iio: adc: introduce Qualcomm SPMI Round Robin ADC
@ 2021-12-11  2:22 Caleb Connolly
  2021-12-11  2:22 ` [PATCH 1/7] mfd: qcom-spmi-pmic: expose the PMIC revid information to clients Caleb Connolly
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Caleb Connolly @ 2021-12-11  2:22 UTC (permalink / raw)
  To: caleb.connolly, sumit.semwal, amit.pundir, john.stultz
  Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring, Andy Gross,
	Bjorn Andersson, Lee Jones, linux-iio, devicetree, linux-kernel,
	linux-arm-msm, Caleb Connolly

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-12-15 19:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-11  2:22 [PATCH 0/7] iio: adc: introduce Qualcomm SPMI Round Robin ADC Caleb Connolly
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-11 20:01   ` kernel test robot
2021-12-11 22:25   ` kernel test robot
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

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.