xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7923.yaml (revision 5e3190f700637fcfc1a52daeaa4a031fdd2557c7)
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
12description: |
13  Analog Devices AD7904, AD7914, AD7923, AD7924 4 Channel ADCs, and AD7908,
14   AD7918, AD7927, AD7928 8 Channels ADCs.
15
16  Specifications about the part can be found at:
17    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7923.pdf
18    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7904_7914_7924.pdf
19    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7908_7918_7928.pdf
20
21properties:
22  compatible:
23    oneOf:
24      - enum:
25          - adi,ad7904
26          - adi,ad7908
27          - adi,ad7914
28          - adi,ad7918
29          - adi,ad7923
30          - adi,ad7928
31      - const: adi,ad7924
32        deprecated: true
33      - items:
34          - const: adi,ad7924
35          - const: adi,ad7923
36      - items:
37          - const: adi,ad7927
38          - const: adi,ad7928
39
40  reg:
41    maxItems: 1
42
43  refin-supply:
44    description: |
45      The regulator supply for ADC reference voltage.
46
47  adi,range-double:
48    description: Sets the analog input range from 0 to 2xVREF.
49    type: boolean
50
51  '#address-cells':
52    const: 1
53
54  '#size-cells':
55    const: 0
56
57required:
58  - compatible
59  - reg
60
61allOf:
62  - $ref: /schemas/spi/spi-peripheral-props.yaml#
63
64unevaluatedProperties: false
65
66examples:
67  - |
68    spi {
69      #address-cells = <1>;
70      #size-cells = <0>;
71
72      ad7928: adc@0 {
73        compatible = "adi,ad7928";
74        reg = <0>;
75        spi-max-frequency = <25000000>;
76        refin-supply = <&adc_vref>;
77
78        #address-cells = <1>;
79        #size-cells = <0>;
80      };
81    };
82