From 9b823442e4969931a44b70622d76e76895b2627a Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Tue, 29 Oct 2019 15:39:07 +0530 Subject: [PATCH] dt-bindings: iio: adc: qcom,spmi-vadc: Add scale function property Update qcom,spmi-vadc bindings to include "qcom,scale-fn-type" property for ADC7. Change-Id: Ieb8ad5779b078dd77838c498b3a4e0bbcf907df8 Signed-off-by: Jishnu Prakash [quic_amelende@quicinc.com: Converted binding change from .txt to .yaml and removed changes already captured in yaml] Signed-off-by: Anjelique Melendez --- bindings/iio/adc/qcom,spmi-vadc.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/iio/adc/qcom,spmi-vadc.yaml b/bindings/iio/adc/qcom,spmi-vadc.yaml index 55af1348..a70a8102 100644 --- a/bindings/iio/adc/qcom,spmi-vadc.yaml +++ b/bindings/iio/adc/qcom,spmi-vadc.yaml @@ -142,6 +142,14 @@ patternProperties: from the ADC that is an average of multiple samples. The value selected is 2^(value). + qcom,scale-fn-type: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The index of the VADC scale function used to convert raw ADC code to + physical scaled unites for the channel. Defined for compatibles + "qcom,spmi-adc5" and "qcom,spmi-adc7". + See include/dt-bindings/iio/qcom,spmi-vadc.h for values. + required: - reg