Lines Matching +full:adc +full:- +full:channels +full:- +full:used
1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm's SPMI PMIC ADC
10 - Andy Gross <agross@kernel.org>
11 - Bjorn Andersson <bjorn.andersson@linaro.org>
14 SPMI PMIC voltage ADC (VADC) provides interface to clients to read
15 voltage. The VADC is a 15-bit sigma-delta ADC.
16 SPMI PMIC5/PMIC7 voltage ADC (ADC) provides interface to clients to read
17 voltage. The VADC is a 16-bit sigma-delta ADC.
22 - items:
23 - const: qcom,pms405-adc
24 - const: qcom,spmi-adc-rev2
26 - items:
27 - enum:
28 - qcom,spmi-vadc
29 - qcom,spmi-adc5
30 - qcom,spmi-adc-rev2
31 - qcom,spmi-adc7
37 '#address-cells':
40 '#size-cells':
43 '#io-channel-cells':
52 - compatible
53 - reg
54 - '#address-cells'
55 - '#size-cells'
56 - '#io-channel-cells'
59 "^.*@[0-9a-f]+$":
63 Represents the external channels which are connected to the ADC.
64 For compatible property "qcom,spmi-vadc" following channels, also known as
65 reference point channels, are used for result calibration and their channel
74 ADC channel number.
75 See include/dt-bindings/iio/qcom,spmi-vadc.h
76 For PMIC7 ADC, the channel numbers are specified separately per PMIC
77 in the PMIC-specific files in include/dt-bindings/iio/.
82 ADC input of the platform as seen in the schematics.
90 This parameter is used to decrease ADC sampling rate.
93 qcom,pre-scaling:
95 Used for scaling the channel input signal before the signal is
97 pre-determined ratio and use it for post scaling. It is a pair of
100 down to 1/3 of its value before ADC measurement.
101 If property is not found default value depending on chip will be used.
102 $ref: /schemas/types.yaml#/definitions/uint32-array
104 - items:
105 - const: 1
106 - enum: [ 1, 3, 4, 6, 20, 8, 10 ]
107 - items:
108 - const: 10
109 - const: 81
114 - For compatible property "qcom,spmi-vadc", if this property is
117 calibrated with 0.625V and 1.25V reference channels, also
119 - For compatible property "qcom,spmi-adc5", "qcom,spmi-adc7" and
120 "qcom,spmi-adc-rev2", if this property is specified VADC will use
123 reference channels, also known as absolute calibration.
126 qcom,hw-settle-time:
129 Time between AMUX getting configured and the ADC starting
130 conversion. The 'hw_settle_time' is an index used from valid values
133 qcom,avg-samples:
136 Number of samples to be used for measurement.
138 from the ADC that is an average of multiple samples. The value
142 - reg
145 - if:
149 const: qcom,spmi-vadc
153 "^.*@[0-9a-f]+$":
159 qcom,hw-settle-time:
164 qcom,avg-samples:
168 - if:
172 const: qcom,spmi-adc-rev2
176 "^.*@[0-9a-f]+$":
182 qcom,hw-settle-time:
187 qcom,avg-samples:
191 - if:
195 const: qcom,spmi-adc5
199 "^.*@[0-9a-f]+$":
205 qcom,hw-settle-time:
210 qcom,avg-samples:
214 - if:
218 const: qcom,spmi-adc7
222 "^.*@[0-9a-f]+$":
228 qcom,hw-settle-time:
233 qcom,avg-samples:
240 - |
242 #address-cells = <1>;
243 #size-cells = <0>;
245 pmic_vadc: adc@3100 {
246 compatible = "qcom,spmi-vadc";
249 #address-cells = <1>;
250 #size-cells = <0>;
251 #io-channel-cells = <1>;
254 adc-chan@39 {
258 qcom,hw-settle-time = <200>;
259 qcom,avg-samples = <1>;
260 qcom,pre-scaling = <1 3>;
263 adc-chan@9 {
267 adc-chan@a {
271 adc-chan@e {
275 adc-chan@f {