dt-bindings: iio: qcom,spmi-vadc: Add compatible string for ADC lite driver
Add the compatible string for ADC-lite driver for reading parallel charger current channel. Change-Id: Ie0d3f90d06be4bf28661736058c5d1fb2af1ac8f Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com> [quic_amelende@quicinc.com: converted binding change from .txt to .yaml] Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
This commit is contained in:
committed by
Anjelique Melendez
parent
236d18167a
commit
ff8af86c1e
@@ -25,6 +25,7 @@ properties:
|
|||||||
- enum:
|
- enum:
|
||||||
- qcom,spmi-vadc
|
- qcom,spmi-vadc
|
||||||
- qcom,spmi-adc5
|
- qcom,spmi-adc5
|
||||||
|
- qcom,spmi-adc5-lite
|
||||||
- qcom,spmi-adc-rev2
|
- qcom,spmi-adc-rev2
|
||||||
- qcom,spmi-adc7
|
- qcom,spmi-adc7
|
||||||
|
|
||||||
@@ -114,10 +115,9 @@ patternProperties:
|
|||||||
channel calibration. If property is not found, channel will be
|
channel calibration. If property is not found, channel will be
|
||||||
calibrated with 0.625V and 1.25V reference channels, also
|
calibrated with 0.625V and 1.25V reference channels, also
|
||||||
known as absolute calibration.
|
known as absolute calibration.
|
||||||
- For compatible property "qcom,spmi-adc5", "qcom,spmi-adc7" and
|
- For all other compatible properties, if this property is specified
|
||||||
"qcom,spmi-adc-rev2", if this property is specified VADC will use
|
VADC will use the VDD reference (1.875V) and GND for channel calibration.
|
||||||
the VDD reference (1.875V) and GND for channel calibration. If
|
If property is not found, channel will be calibrated with 0V and 1.25V
|
||||||
property is not found, channel will be calibrated with 0V and 1.25V
|
|
||||||
reference channels, also known as absolute calibration.
|
reference channels, also known as absolute calibration.
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
@@ -209,6 +209,29 @@ allOf:
|
|||||||
enum: [ 1, 2, 4, 8, 16 ]
|
enum: [ 1, 2, 4, 8, 16 ]
|
||||||
default: 1
|
default: 1
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: qcom,spmi-adc5-lite
|
||||||
|
|
||||||
|
then:
|
||||||
|
patternProperties:
|
||||||
|
"^channel@[0-9a-f]+$":
|
||||||
|
properties:
|
||||||
|
qcom,decimation:
|
||||||
|
enum: [ 250, 420, 840 ]
|
||||||
|
default: 840
|
||||||
|
|
||||||
|
qcom,hw-settle-time:
|
||||||
|
enum: [ 15, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1, 2,
|
||||||
|
4, 6, 8, 10]
|
||||||
|
default: 15
|
||||||
|
|
||||||
|
qcom,avg-samples:
|
||||||
|
enum: [ 1, 2, 4, 8, 16 ]
|
||||||
|
default: 1
|
||||||
|
|
||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
|
Reference in New Issue
Block a user