summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/iio/adc/ti,adc081c.yaml
blob: caaad777580cd8c040f908914d76ed06af86b6f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/ti,adc081c.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI Single-channel I2C ADCs

maintainers:
  - Jonathan Cameron <jic23@kernel.org>
  - Lars-Peter Clausen <lars@metafoo.de>

description: |
  Single-channel ADC supporting 8, 10, or 12-bit samples and high/low alerts.

properties:
  compatible:
    enum:
      - ti,adc081c
      - ti,adc101c
      - ti,adc121c

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vref-supply:
    description:
      Regulator for the combined power supply and voltage reference

  "#io-channel-cells":
    const: 1

required:
  - compatible
  - reg
  - vref-supply

additionalProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        adc@52 {
            compatible = "ti,adc081c";
            reg = <0x52>;
            vref-supply = <&reg_2p5v>;
        };
    };
...