Lines Matching +full:spmi +full:- +full:adc +full:- +full:rev2

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
25 - enum:
26 - qcom,spmi-vadc
27 - qcom,spmi-adc5
28 - qcom,spmi-adc-rev2
29 - qcom,spmi-adc7
32 description: VADC base address in the SPMI PMIC register map
35 '#address-cells':
38 '#size-cells':
41 '#io-channel-cells':
50 - compatible
51 - reg
52 - '#address-cells'
53 - '#size-cells'
54 - '#io-channel-cells'
57 "^channel@[0-9a-f]+$":
61 Represents the external channels which are connected to the ADC.
62 For compatible property "qcom,spmi-vadc" following channels, also known as
72 ADC channel number.
73 See include/dt-bindings/iio/qcom,spmi-vadc.h
74 For PMIC7 ADC, the channel numbers are specified separately per PMIC
75 in the PMIC-specific files in include/dt-bindings/iio/.
79 ADC input of the platform as seen in the schematics.
87 This parameter is used to decrease ADC sampling rate.
90 qcom,pre-scaling:
94 pre-determined ratio and use it for post scaling. It is a pair of
97 down to 1/3 of its value before ADC measurement.
99 $ref: /schemas/types.yaml#/definitions/uint32-array
101 - items:
102 - const: 1
103 - enum: [ 1, 3, 4, 6, 20, 8, 10, 16 ]
104 - items:
105 - const: 10
106 - const: 81
111 - For compatible property "qcom,spmi-vadc", if this property is
116 - For compatible property "qcom,spmi-adc5", "qcom,spmi-adc7" and
117 "qcom,spmi-adc-rev2", if this property is specified VADC will use
123 qcom,hw-settle-time:
126 Time between AMUX getting configured and the ADC starting
130 qcom,avg-samples:
135 from the ADC that is an average of multiple samples. The value
139 - reg
142 - if:
146 const: qcom,spmi-vadc
150 "^channel@[0-9a-f]+$":
156 qcom,hw-settle-time:
161 qcom,avg-samples:
165 - if:
169 const: qcom,spmi-adc-rev2
173 "^channel@[0-9a-f]+$":
179 qcom,hw-settle-time:
184 qcom,avg-samples:
188 - if:
192 const: qcom,spmi-adc5
196 "^channel@[0-9a-f]+$":
202 qcom,hw-settle-time:
207 qcom,avg-samples:
211 - if:
215 const: qcom,spmi-adc7
219 "^channel@[0-9a-f]+$":
225 qcom,hw-settle-time:
230 qcom,avg-samples:
237 - |
239 #address-cells = <1>;
240 #size-cells = <0>;
242 adc@3100 {
243 compatible = "qcom,spmi-vadc";
246 #address-cells = <1>;
247 #size-cells = <0>;
248 #io-channel-cells = <1>;
255 qcom,hw-settle-time = <200>;
256 qcom,avg-samples = <1>;
257 qcom,pre-scaling = <1 3>;
278 - |
279 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
280 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h>
281 #include <dt-bindings/interrupt-controller/irq.h>
284 #address-cells = <1>;
285 #size-cells = <0>;
287 adc@3100 {
289 compatible = "qcom,spmi-adc7";
290 #address-cells = <1>;
291 #size-cells = <0>;
292 #io-channel-cells = <1>;
298 qcom,hw-settle-time = <200>;
305 qcom,hw-settle-time = <200>;