]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iio: adc: Add PMIC7 ADC bindings
authorJishnu Prakash <jprakash@codeaurora.org>
Thu, 28 May 2020 16:54:24 +0000 (22:24 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:18 +0000 (11:49 +0100)
commitd1492bbd470280c687e6677a355f923435bdb3ac
tree690b4b09916975663a52e50867201d8997528662
parent5a471662b5d92b5ff79478fee27a6d63ca4e71c9
iio: adc: Add PMIC7 ADC bindings

Add documentation for PMIC7 ADC peripheral.
For the PMIC7-type PMICs, ADC peripheral is present in HW for the
following PMICs: PMK8350, PM8350, PM8350b, PMR735a and PMR735b.
Of these, only the ADC peripheral on PMK8350 is exposed directly to SW.
If SW needs to communicate with ADCs on other PMICs, it specifies the
PMIC to PMK8350 through the newly added SID register and communication
between PMK8350 ADC and other PMIC ADCs is carried out through
PBS(Programmable Boot Sequence) at the firmware level.

In addition, add definitions for ADC channels and virtual channel
definitions (combination of ADC channel number and PMIC SID number)
per PMIC, to be used by ADC clients for PMIC7.

Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h [new file with mode: 0644]
include/dt-bindings/iio/qcom,spmi-adc7-pm8350b.h [new file with mode: 0644]
include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h [new file with mode: 0644]
include/dt-bindings/iio/qcom,spmi-adc7-pmr735a.h [new file with mode: 0644]
include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h [new file with mode: 0644]
include/dt-bindings/iio/qcom,spmi-vadc.h