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