Linux-libre 5.7.5-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / iio / adc / adi,ad7923.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7923.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Analog Devices AD7923 and similars with 4 and 8 Channel ADCs.
8
9 maintainers:
10   - Michael Hennerich <michael.hennerich@analog.com>
11   - Patrick Vasseur <patrick.vasseur@c-s.fr>
12
13 description: |
14   Analog Devices AD7904, AD7914, AD7923, AD7924 4 Channel ADCs, and AD7908,
15    AD7918, AD7928 8 Channels ADCs.
16
17   Specifications about the part can be found at:
18     https://www.analog.com/media/en/technical-documentation/data-sheets/AD7923.pdf
19     https://www.analog.com/media/en/technical-documentation/data-sheets/AD7904_7914_7924.pdf
20     https://www.analog.com/media/en/technical-documentation/data-sheets/AD7908_7918_7928.pdf
21
22 properties:
23   compatible:
24     enum:
25       - adi,ad7904
26       - adi,ad7914
27       - adi,ad7923
28       - adi,ad7924
29       - adi,ad7908
30       - adi,ad7918
31       - adi,ad7928
32
33   reg:
34     maxItems: 1
35
36   refin-supply:
37     description: |
38       The regulator supply for ADC reference voltage.
39
40   '#address-cells':
41     const: 1
42
43   '#size-cells':
44     const: 0
45
46 required:
47   - compatible
48   - reg
49
50 examples:
51   - |
52     spi {
53       #address-cells = <1>;
54       #size-cells = <0>;
55
56       ad7928: adc@0 {
57         compatible = "adi,ad7928";
58         reg = <0>;
59         spi-max-frequency = <25000000>;
60         refin-supply = <&adc_vref>;
61
62         #address-cells = <1>;
63         #size-cells = <0>;
64       };
65     };