Merge "dt-bindings: iio: qcom,spmi-vadc: update prescale ratios"

This commit is contained in:
qctecmdr
2023-10-10 10:25:56 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -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
@@ -105,6 +106,12 @@ patternProperties:
- items: - items:
- const: 10 - const: 10
- const: 81 - const: 81
- items:
- enum: [ 32, 14, 28 ]
- const: 100
- items:
- const: 1000
- enum: [ 305185, 610370 ]
qcom,ratiometric: qcom,ratiometric:
description: | description: |
@@ -114,10 +121,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 +215,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: