Lines Matching +full:pwm +full:- +full:gpios
1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
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":
48 '#trigger-source-cells':
53 dt-bindings/iio/adc/adi,ad7606.h.
60 # interface is used, the correct way is to only set spi-cpol.
61 spi-cpha: true
63 spi-cpol: true
65 avcc-supply: true
67 vdrive-supply:
72 refin-supply:
82 adi,conversion-start-gpios:
90 reset-gpios:
98 standby-gpios:
101 place the AD7606 into one of two power-down modes, Standby mode or
106 adi,first-data-gpios:
114 adi,range-gpios:
127 adi,oversampling-ratio-gpios:
129 Must be the device tree identifier of the over-sampling mode pins. As the
135 adi,sw-mode:
141 registers. If the adi,oversampling-ratio-gpios property is defined, then
142 the driver will set the oversampling gpios to high. Otherwise, it is
148 In case the conversion is triggered by a PWM instead of a GPIO plugged to
149 the CONVST pin, the PWM must be referenced.
150 The first is the PWM connected to CONVST or CONVST1 for the chips with the
151 2nd PWM connected to CONVST2, if CONVST2 is available and not shorted to
156 pwm-names:
159 - const: convst1
160 - const: convst2
162 io-backends:
164 A reference to the iio-backend, which is responsible handling the BUSY
171 "^channel@[1-8]$":
183 diff-channels:
188 both positive and negative inputs (i.e. diff-channels = <reg reg>).
198 * Bipolar single-ended
199 * Unipolar single-ended
202 'unipolar single-ended'. So for the other configurations the 'bipolar'
203 property must be specified. If 'diff-channels' is specified, it is
205 single-ended.
207 adi,rfilter-ohms:
217 - reg
218 - bipolar
221 - compatible
222 - reg
223 - avcc-supply
224 - vdrive-supply
227 - $ref: /schemas/spi/spi-peripheral-props.yaml#
229 - oneOf:
230 - required:
231 - adi,conversion-start-gpios
232 - required:
233 - pwms
235 - if:
242 adi,first-data-gpios: false
243 standby-gpios: false
244 adi,range-gpios:
248 adi,range-gpios:
251 - if:
256 - adi,ad7605-4
257 - adi,ad7616
260 adi,oversampling-ratio-gpios: false
262 - if:
267 - adi,ad7605-4
268 - adi,ad7606-4
269 - adi,ad7606-6
270 - adi,ad7606-8
271 - adi,ad7607
272 - adi,ad7608
273 - adi,ad7609
274 - adi,ad7616
277 "^channel@[0-9a-f]+$":
279 adi,rfilter-ohms: false
281 - if:
286 - adi,ad7605-4
287 - adi,ad7606-4
288 - adi,ad7606-6
289 - adi,ad7606-8
290 - adi,ad7607
291 - adi,ad7608
292 - adi,ad7609
295 adi,sw-mode: false
300 pwm-names:
302 adi,conversion-start-gpios:
305 - if:
308 - adi,sw-mode
311 "^channel@[1-8]$": false
313 - if:
318 - adi,ad7606c-16
319 - adi,ad7606c-18
322 "^channel@[1-8]$": false
327 - |
328 #include <dt-bindings/gpio/gpio.h>
329 iio-backend {
330 #address-cells = <1>;
331 #size-cells = <0>;
337 avcc-supply = <&adc_vref>;
338 vdrive-supply = <&vdd_supply>;
340 reset-gpios = <&gpio0 91 GPIO_ACTIVE_HIGH>;
341 standby-gpios = <&gpio0 90 GPIO_ACTIVE_LOW>;
342 adi,range-gpios = <&gpio0 89 GPIO_ACTIVE_HIGH>;
343 adi,oversampling-ratio-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH
346 io-backends = <&iio_backend>;
350 - |
351 #include <dt-bindings/gpio/gpio.h>
352 #include <dt-bindings/interrupt-controller/irq.h>
354 #address-cells = <1>;
355 #size-cells = <0>;
358 compatible = "adi,ad7606-8";
360 spi-max-frequency = <1000000>;
361 spi-cpol;
363 avcc-supply = <&adc_vref>;
364 vdrive-supply = <&vdd_supply>;
367 interrupt-parent = <&gpio>;
369 adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
370 reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
371 adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
372 adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
375 standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
378 - |
379 #include <dt-bindings/gpio/gpio.h>
380 #include <dt-bindings/interrupt-controller/irq.h>
382 #address-cells = <1>;
383 #size-cells = <0>;
386 compatible = "adi,ad7606c-18";
389 #address-cells = <1>;
390 #size-cells = <0>;
392 spi-max-frequency = <1000000>;
393 spi-cpol;
395 avcc-supply = <&adc_vref>;
396 vdrive-supply = <&vdd_supply>;
399 interrupt-parent = <&gpio>;
401 adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
402 reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
403 adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
404 standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
406 adi,sw-mode;
410 diff-channels = <1 1>;
421 diff-channels = <8 8>;
423 adi,rfilter-ohms = <2048>;