xref: /linux/Documentation/devicetree/bindings/hwmon/ti,ads7828.yaml (revision 1260ed77798502de9c98020040d2995008de10cc)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwmon/ti,ads7828.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments ADS7828/ADS7830 Analog to Digital Converter (ADC)
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12description: |
13  The ADS7828 is 12-Bit, 8-Channel Sampling Analog to Digital Converter (ADC)
14  with an I2C interface.
15
16  Datasheets:
17    https://www.ti.com/product/ADS7828
18
19properties:
20  compatible:
21    enum:
22      - ti,ads7828
23      - ti,ads7830
24
25  reg:
26    maxItems: 1
27
28  ti,differential-input:
29    description:
30      Set to use the device in differential mode.
31    type: boolean
32
33  vref-supply:
34    description:
35      The regulator to use as an external reference. If it does not exists the
36      internal reference will be used.
37
38required:
39  - compatible
40  - reg
41
42additionalProperties: false
43
44examples:
45  - |
46    i2c {
47        #address-cells = <1>;
48        #size-cells = <0>;
49
50        adc@48 {
51            compatible = "ti,ads7828";
52            reg = <0x48>;
53            vref-supply = <&vref>;
54            ti,differential-input;
55        };
56    };
57