Skip to content

Add QCOM PMIC5 ADC driver

Siddartha Mohanadoss linux-devicetree linux-iio 4 versions – Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 5 repliesApplied
  2. v43 patches 2 repliesSuperseded
  3. v33 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches8 repliesSuperseded

Changes in v5 from the cover letter

* Remove support to query channels raw ADC code readings.
* Few minor changes.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: iio: adc: Add DT binding document for PMIC5 ADCDocumentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt include/dt-bindings/iio/qcom,spmi-vadc.h+172 -201 reply
2/3iio: adc: Add QCOM SPMI PMIC5 ADC driver, drivers/iio/adc/Kconfig drivers/iio/adc/Makefile +3 more+1047 -53 replies
3/3iio: adc: Update QCOM ADC license to SPDX formatinclude/dt-bindings/iio/qcom,spmi-vadc.h+1 -91 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] Add QCOM PMIC5 ADC driver

This patch series adds the PMIC5 ADC family of chipset that supports clients to measure voltage and current on inputs connected to the PMIC ADC AMUX. Clients include reading voltage phone power and on board system thermistors for thermal management.

The v5 patchset addresses most of the review comments from prior patchset.

Changes since patchset v4
* Remove support to query channels raw ADC code readings.
* Few minor changes.

Changes since patchset v3
* Few minor changes.

Changes since patchset v2
* Removed support for current channel as part of this series.
* Fix pointer arithmetic for iio_chan.
* Few minor changes.
* Update license to SPDX format for ADC header file.

Changes since patchset v1
* Merged DT bindings with prior PMIC family instead of a seperate DT file for PMIC5 family.
* Updated documentation for 'label' and 'value' property.
* Updated using unique prefix adc5 for functions and defines specific for this family of chipset.
* Refactored scaling functions to use function pointer for scaling lookup.
* Added documentation comments as requested in the scaling functions as applicable.
* Added utility functions in the scaling API to avoid some of the code repetitions.
* Use consistent hex format for adc_data and use specific length while assigning data.
* Added support to determine controller version and check against supported hardware settling delay values.
* Various minor changes.

Siddartha Mohanadoss (3):
dt-bindings: iio: adc: Add DT binding document for PMIC5 ADC
iio: adc: Add QCOM SPMI PMIC5 ADC driver
iio: adc: Update QCOM ADC license to SPDX format

 ,                                                  |   0
 .../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt |  77 +-
 drivers/iio/adc/Kconfig                            |  20 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/iio/adc/qcom-spmi-adc5.c                   | 788 +++++++++++++++++++++
 drivers/iio/adc/qcom-vadc-common.c                 | 189 ++++-
 drivers/iio/adc/qcom-vadc-common.h                 |  54 ++
 include/dt-bindings/iio/qcom,spmi-vadc.h           | 125 +++-
 8 files changed, 1220 insertions(+), 34 deletions(-)
 create mode 100644 ,
 create mode 100644 drivers/iio/adc/qcom-spmi-adc5.c
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project