Lines Matching +full:common +full:- +full:mode +full:- +full:channel
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Ceclan Dumitru <[email protected]>
15 The AD717x family offer a complete integrated Sigma-Delta ADC solution which
16 can be used in high precision, low noise single channel applications
18 (Factory Automation PLC Input modules). The Sigma-Delta ADC is intended
23 The AD411X family encompasses a series of low power, low noise, 24-bit,
24 sigma-delta analog-to-digital converters that offer a versatile range of
26 fully differential/single-ended and bipolar voltage inputs.
29 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4111.pdf
30 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4112.pdf
32 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4114.pdf
33 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4115.pdf
34 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4116.pdf
35 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7172-2.pdf
36 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7172-4.pdf
37 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7173-8.pdf
38 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7175-2.pdf
39 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7175-8.pdf
40 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7176-2.pdf
41 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7177-2.pdf
46 - adi,ad4111
47 - adi,ad4112
48 - adi,ad4113
49 - adi,ad4114
50 - adi,ad4115
51 - adi,ad4116
52 - adi,ad7172-2
53 - adi,ad7172-4
54 - adi,ad7173-8
55 - adi,ad7175-2
56 - adi,ad7175-8
57 - adi,ad7176-2
58 - adi,ad7177-2
66 - description: |
70 - description: |
75 interrupt-names:
78 - const: rdy
79 - const: err
81 '#address-cells':
84 '#size-cells':
87 spi-max-frequency:
90 gpio-controller:
93 '#gpio-cells':
97 GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
99 vref-supply:
103 REF+ and REF- pins: Vref = (REF+) - (REF-).
105 vref2-supply:
109 REF2+ and REF2- pins: Vref2 = (REF2+) - (REF2-).
111 avdd-supply:
114 represents (AVDD1 - AVSS).
116 avdd2-supply:
119 represents (AVDD2 - AVSS).
121 iovdd-supply:
130 clock-names:
132 - ext-clk
133 - xtal
135 '#clock-cells':
138 rdy-gpios:
150 "^channel@[0-9a-f]$":
160 diff-channels:
163 voltage channel. The first value is the positive input and the second
164 value is the negative input of the channel.
167 To select it set the second channel to 16.
168 (VIN2, VINCOM) -> diff-channels = <2 16>
175 Supported only by AD7172-2, AD7172-4, AD7175-2, AD7175-8, AD7177-2,
185 single-channel:
187 This property is used for defining a current channel or the positive
188 input of a voltage channel (single-ended or pseudo-differential).
191 Example: (IIN2+, IIN2−) -> single-channel = <2>
192 To correctly configure a current channel set the "adi,current-channel"
195 To configure a single-ended/pseudo-differential channel set the
196 "common-mode-channel" property to the desired negative voltage input.
198 When used as a voltage channel, special inputs are valid as well.
202 common-mode-channel:
205 single-ended or pseudo-differential voltage channel.
211 adi,reference-select:
214 the specific channel. Valid values are:
217 refout-avss: REFOUT/AVSS (Internal reference)
220 External reference ref2 only available on ad7173-8 and ad7172-4.
221 Internal reference refout-avss not available on ad7172-4.
226 - vref
227 - vref2
228 - refout-avss
229 - avdd
230 default: refout-avss
232 adi,current-channel:
239 - reg
242 - oneOf:
243 - required: [single-channel]
245 diff-channels: false
246 - required: [diff-channels]
248 single-channel: false
249 adi,current-channel: false
250 common-mode-channel: false
252 - if:
253 required: [common-mode-channel]
256 adi,current-channel: false
259 - compatible
260 - reg
263 - $ref: /schemas/spi/spi-peripheral-props.yaml#
265 # Only ad7172-4, ad7173-8 and ad7175-8 support vref2
266 - if:
272 - adi,ad7172-4
273 - adi,ad7173-8
274 - adi,ad7175-8
277 vref2-supply: false
279 "^channel@[0-9a-f]$":
281 adi,reference-select:
283 - vref
284 - refout-avss
285 - avdd
287 - if:
292 - adi,ad4114
293 - adi,ad4115
294 - adi,ad4116
295 - adi,ad7173-8
296 - adi,ad7175-8
299 "^channel@[0-9a-f]$":
304 - if:
309 - adi,ad7172-2
310 - adi,ad7175-2
311 - adi,ad7176-2
312 - adi,ad7177-2
315 "^channel@[0-9a-f]$":
320 # Model ad7172-4 does not support internal reference
321 - if:
325 const: adi,ad7172-4
328 "^channel@[0-9a-f]$":
332 adi,reference-select:
334 - vref
335 - vref2
336 - avdd
338 - adi,reference-select
340 - if:
345 - adi,ad4111
346 - adi,ad4112
347 - adi,ad4113
348 - adi,ad4114
349 - adi,ad4115
350 - adi,ad4116
353 avdd2-supply: false
355 - if:
361 - adi,ad4111
362 - adi,ad4112
365 "^channel@[0-9a-f]$":
367 adi,current-channel: false
369 - if:
371 - required: [clock-names]
372 - required: [clocks]
375 '#clock-cells': false
380 # Example AD7173-8 with external reference connected to REF+/REF-:
381 - |
382 #include <dt-bindings/gpio/gpio.h>
383 #include <dt-bindings/interrupt-controller/irq.h>
386 #address-cells = <1>;
387 #size-cells = <0>;
390 compatible = "adi,ad7173-8";
393 #address-cells = <1>;
394 #size-cells = <0>;
397 interrupt-names = "rdy";
398 interrupt-parent = <&gpio>;
399 spi-max-frequency = <5000000>;
400 gpio-controller;
401 #gpio-cells = <2>;
402 #clock-cells = <0>;
404 vref-supply = <&dummy_regulator>;
406 channel@0 {
409 diff-channels = <0 1>;
410 adi,reference-select = "vref";
413 channel@1 {
415 diff-channels = <2 3>;
418 channel@2 {
421 diff-channels = <4 5>;
424 channel@3 {
427 diff-channels = <6 7>;
430 channel@4 {
432 diff-channels = <8 9>;
433 adi,reference-select = "avdd";
438 # Example AD4111 with current channel and single-ended channel:
439 - |
440 #include <dt-bindings/gpio/gpio.h>
441 #include <dt-bindings/interrupt-controller/irq.h>
444 #address-cells = <1>;
445 #size-cells = <0>;
451 #address-cells = <1>;
452 #size-cells = <0>;
455 interrupt-names = "rdy";
456 interrupt-parent = <&gpio>;
457 rdy-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
458 spi-max-frequency = <5000000>;
459 gpio-controller;
460 #gpio-cells = <2>;
461 #clock-cells = <0>;
463 channel@0 {
466 diff-channels = <4 5>;
469 // Single ended channel VIN2/VINCOM
470 channel@1 {
473 single-channel = <2>;
474 common-mode-channel = <16>;
477 // Current channel IN2+/IN2-
478 channel@2 {
480 single-channel = <2>;
481 adi,current-channel;