Lines Matching +full:gpio0 +full:- +full:adc +full:- +full:pin

1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7606.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD7606 Simultaneous Sampling ADC
10 - Michael Hennerich <[email protected]>
13 Analog Devices AD7606 Simultaneous Sampling ADC
14 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7605-4.pdf
15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-16.pdf
18 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-18.pdf
19 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7607.pdf
20 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7608.pdf
21 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7609.pdf
22 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf
27 - adi,ad7605-4
28 - adi,ad7606-4
29 - adi,ad7606-6
30 - adi,ad7606-8 # Referred to as AD7606 (without -8) in the datasheet
31 - adi,ad7606b
32 - adi,ad7606c-16
33 - adi,ad7606c-18
34 - adi,ad7607
35 - adi,ad7608
36 - adi,ad7609
37 - adi,ad7616
42 "#address-cells":
45 "#size-cells":
52 # interface is used, the correct way is to only set spi-cpol.
53 spi-cpha: true
55 spi-cpol: true
57 avcc-supply: true
59 vdrive-supply:
64 refin-supply:
70 The BUSY pin falling edge indicates that the conversion is over, and thus
74 adi,conversion-start-gpios:
76 Must be the device tree identifier of the CONVST pin(s). This logic input
82 reset-gpios:
84 Must be the device tree identifier of the RESET pin. If specified, it will
90 standby-gpios:
92 Must be the device tree identifier of the STBY pin. This pin is used to
93 place the AD7606 into one of two power-down modes, Standby mode or
98 adi,first-data-gpios:
100 Must be the device tree identifier of the FRSTDATA pin. The FRSTDATA
106 adi,range-gpios:
108 Must be the device tree identifier of the RANGE pin. The state on this
109 pin determines the input range of the analog input channels. If this pin
111 On the AD760X, if this pin is tied to a logic low, the analog input range
119 adi,oversampling-ratio-gpios:
121 Must be the device tree identifier of the over-sampling mode pins. As the
127 adi,sw-mode:
133 registers. If the adi,oversampling-ratio-gpios property is defined, then
141 the CONVST pin, the PWM must be referenced.
148 pwm-names:
151 - const: convst1
152 - const: convst2
154 io-backends:
156 A reference to the iio-backend, which is responsible handling the BUSY
157 pin's falling edge and communication.
163 "^channel@[1-8]$":
165 $ref: adc.yaml
175 diff-channels:
178 The ADC uses the same positive and negative inputs for this.
180 both positive and negative inputs (i.e. diff-channels = <reg reg>).
189 The ADC channels can be configured as
190 * Bipolar single-ended
191 * Unipolar single-ended
194 'unipolar single-ended'. So for the other configurations the 'bipolar'
195 property must be specified. If 'diff-channels' is specified, it is
197 single-ended.
200 - reg
201 - bipolar
204 - compatible
205 - reg
206 - avcc-supply
207 - vdrive-supply
210 - $ref: /schemas/spi/spi-peripheral-props.yaml#
212 - oneOf:
213 - required:
214 - adi,conversion-start-gpios
215 - required:
216 - pwms
218 - oneOf:
219 - required:
220 - interrupts
221 - required:
222 - io-backends
224 - if:
231 adi,first-data-gpios: false
232 standby-gpios: false
233 adi,range-gpios:
237 adi,range-gpios:
240 - if:
245 - adi,ad7605-4
246 - adi,ad7616
249 adi,oversampling-ratio-gpios: false
251 - if:
256 - adi,ad7605-4
257 - adi,ad7606-4
258 - adi,ad7606-6
259 - adi,ad7606-8
260 - adi,ad7607
261 - adi,ad7608
262 - adi,ad7609
265 adi,sw-mode: false
270 pwm-names:
272 adi,conversion-start-gpios:
275 - if:
278 - adi,sw-mode
281 "^channel@[1-8]$": false
283 - if:
288 - adi,ad7606c-16
289 - adi,ad7606c-18
292 "^channel@[1-8]$": false
297 - |
298 #include <dt-bindings/gpio/gpio.h>
299 iio-backend {
300 #address-cells = <1>;
301 #size-cells = <0>;
307 avcc-supply = <&adc_vref>;
308 vdrive-supply = <&vdd_supply>;
310 reset-gpios = <&gpio0 91 GPIO_ACTIVE_HIGH>;
311 standby-gpios = <&gpio0 90 GPIO_ACTIVE_LOW>;
312 adi,range-gpios = <&gpio0 89 GPIO_ACTIVE_HIGH>;
313 adi,oversampling-ratio-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH
314 &gpio0 87 GPIO_ACTIVE_HIGH
315 &gpio0 86 GPIO_ACTIVE_HIGH>;
316 io-backends = <&iio_backend>;
320 - |
321 #include <dt-bindings/gpio/gpio.h>
322 #include <dt-bindings/interrupt-controller/irq.h>
324 #address-cells = <1>;
325 #size-cells = <0>;
327 adc@0 {
328 compatible = "adi,ad7606-8";
330 spi-max-frequency = <1000000>;
331 spi-cpol;
333 avcc-supply = <&adc_vref>;
334 vdrive-supply = <&vdd_supply>;
337 interrupt-parent = <&gpio>;
339 adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
340 reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
341 adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
342 adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
345 standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
348 - |
349 #include <dt-bindings/gpio/gpio.h>
350 #include <dt-bindings/interrupt-controller/irq.h>
352 #address-cells = <1>;
353 #size-cells = <0>;
355 adc@0 {
356 compatible = "adi,ad7606c-18";
359 #address-cells = <1>;
360 #size-cells = <0>;
362 spi-max-frequency = <1000000>;
363 spi-cpol;
365 avcc-supply = <&adc_vref>;
366 vdrive-supply = <&vdd_supply>;
369 interrupt-parent = <&gpio>;
371 adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
372 reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
373 adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
374 standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
376 adi,sw-mode;
380 diff-channels = <1 1>;
391 diff-channels = <8 8>;