xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adi,ad799x.yaml (revision 1b10e191f341111fad7be32ead11484dfd09b800)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/adi,ad799x.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD799x analog to digital converters
8
9maintainers:
10  - Michael Hennerich <Michael.Hennerich@analog.com>
11
12description: |
13    Support for Analog Devices AD7991, AD7992, AD7993, AD7994, AD7995, AD7997, AD7998,
14    AD7999 and similar analog to digital converters.
15    Specifications on the converters can be found at:
16    AD7991, AD7995, AD7999:
17      https://www.analog.com/media/en/technical-documentation/data-sheets/AD7991_7995_7999.pdf
18    AD7992:
19      https://www.analog.com/media/en/technical-documentation/data-sheets/AD7992.pdf
20    AD7993, AD7994:
21      https://www.analog.com/media/en/technical-documentation/data-sheets/AD7993_7994.pdf
22    AD7997, AD7998:
23      https://www.analog.com/media/en/technical-documentation/data-sheets/AD7997_7998.pdf
24
25properties:
26  compatible:
27    enum:
28      - adi,ad7991
29      - adi,ad7992
30      - adi,ad7993
31      - adi,ad7994
32      - adi,ad7995
33      - adi,ad7997
34      - adi,ad7998
35      - adi,ad7999
36
37  reg:
38    maxItems: 1
39
40  interrupts:
41    maxItems: 1
42
43  vcc-supply:
44    description:
45      ADC power supply
46
47  vref-supply:
48    description:
49      ADC reference voltage supply, optional for AD7991, AD7995 and AD7999
50
51required:
52  - compatible
53  - reg
54
55additionalProperties: false
56
57examples:
58  - |
59    i2c {
60      #address-cells = <1>;
61      #size-cells = <0>;
62
63       adc1: adc@28 {
64               reg = <0x28>;
65               compatible = "adi,ad7991";
66               interrupts = <13 2>;
67               interrupt-parent = <&gpio6>;
68
69               vcc-supply = <&vcc_3v3>;
70               vref-supply = <&adc_vref>;
71        };
72    };
73...
74