linux/include/dt-bindings/iio
Manivannan Sadhasivam 22f1d06f4f dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels
As per the new ADC7 architecture used by the Qualcomm PMICs, each PMIC
has the static Slave ID (SID) assigned by default. The primary PMIC
PMK8350 is responsible for collecting the temperature/voltage data from
the slave PMICs and exposing them via it's registers.

For getting the measurements from the slave PMICs, PMK8350 uses the
channel ID encoded with the SID of the relevant PMIC. So far, the
dt-binding for the slave PMIC PM8350 assumed that there will be only
one PM8350 in a system. So it harcoded SID 1 with channel IDs.

But this got changed in platforms such as Lenovo X13s where there are a
couple of PM8350 PMICs available. So to address multiple PM8350s, change
the binding to accept the SID specified by the user and use it for
encoding the channel ID.

It should be noted that, even though the SID is static it is not
globally unique. Only the primary PMIC has the unique SID id 0.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221103095810.64606-2-manivannan.sadhasivam@linaro.org
2022-11-06 21:11:11 -06:00
..
adc Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
addac dt-bindings: iio: add AD74413R 2021-12-12 17:09:11 +00:00
temperature dt-bindings: iio/temperature: Add thermocouple types (and doc) 2019-04-04 20:21:01 +01:00
adi,ad5592r.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qcom,spmi-adc7-pm8350.h dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels 2022-11-06 21:11:11 -06:00
qcom,spmi-adc7-pm8350b.h iio: adc: Add PMIC7 ADC bindings 2020-06-14 11:49:18 +01:00
qcom,spmi-adc7-pmk8350.h iio: adc: Add PMIC7 ADC bindings 2020-06-14 11:49:18 +01:00
qcom,spmi-adc7-pmr735a.h iio: adc: Add PMIC7 ADC bindings 2020-06-14 11:49:18 +01:00
qcom,spmi-adc7-pmr735b.h iio: adc: Add PMIC7 ADC bindings 2020-06-14 11:49:18 +01:00
qcom,spmi-vadc.h iio: adc: Add PMIC7 ADC bindings 2020-06-14 11:49:18 +01:00