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
7title: Analog Devices AD7923 and similars with 4 and 8 Channel ADCs.
8
9maintainers:
10  - Michael Hennerich <michael.hennerich@analog.com>
11  - Patrick Vasseur <patrick.vasseur@c-s.fr>
12
13description: |
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
22properties:
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  spi-max-frequency: true
47
48required:
49  - compatible
50  - reg
51
52additionalProperties: false
53
54examples:
55  - |
56    spi {
57      #address-cells = <1>;
58      #size-cells = <0>;
59
60      ad7928: adc@0 {
61        compatible = "adi,ad7928";
62        reg = <0>;
63        spi-max-frequency = <25000000>;
64        refin-supply = <&adc_vref>;
65
66        #address-cells = <1>;
67        #size-cells = <0>;
68      };
69    };
70