xref: /linux/Documentation/devicetree/bindings/iio/adc/ti,adc081c.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/ti,adc081c.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI Single-channel I2C ADCs
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11  - Lars-Peter Clausen <lars@metafoo.de>
12
13description: |
14  Single-channel ADC supporting 8, 10, or 12-bit samples and high/low alerts.
15
16properties:
17  compatible:
18    enum:
19      - ti,adc081c
20      - ti,adc101c
21      - ti,adc121c
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  vref-supply:
30    description:
31      Regulator for the combined power supply and voltage reference
32
33  "#io-channel-cells":
34    const: 1
35
36required:
37  - compatible
38  - reg
39  - vref-supply
40
41additionalProperties: false
42
43examples:
44  - |
45    i2c {
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        adc@52 {
50            compatible = "ti,adc081c";
51            reg = <0x52>;
52            vref-supply = <&reg_2p5v>;
53        };
54    };
55...
56