xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7091r5.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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,ad7091r5.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD7091R5 4-Channel 12-Bit ADC
8
9maintainers:
10  - Michael Hennerich <michael.hennerich@analog.com>
11
12description: |
13  Analog Devices AD7091R5 4-Channel 12-Bit ADC
14  https://www.analog.com/media/en/technical-documentation/data-sheets/ad7091r-5.pdf
15
16properties:
17  compatible:
18    enum:
19      - adi,ad7091r5
20
21  reg:
22    maxItems: 1
23
24  vref-supply:
25    description:
26      Phandle to the vref power supply
27
28  interrupts:
29    maxItems: 1
30
31
32required:
33  - compatible
34  - reg
35
36additionalProperties: false
37
38examples:
39  - |
40    #include <dt-bindings/gpio/gpio.h>
41    #include <dt-bindings/interrupt-controller/irq.h>
42    i2c {
43        #address-cells = <1>;
44        #size-cells = <0>;
45
46        adc@2f {
47            compatible = "adi,ad7091r5";
48            reg = <0x2f>;
49
50            interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
51            interrupt-parent = <&gpio>;
52        };
53    };
54...
55