0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004
0005 $id: http://devicetree.org/schemas/hwmon/ti,ads7828.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: Texas Instruments ADS7828/ADS7830 Analog to Digital Converter (ADC)
0009
0010 maintainers:
0011 - Krzysztof Kozlowski <krzk@kernel.org>
0012
0013 description: |
0014 The ADS7828 is 12-Bit, 8-Channel Sampling Analog to Digital Converter (ADC)
0015 with an I2C interface.
0016
0017 Datasheets:
0018 https://www.ti.com/product/ADS7828
0019
0020 properties:
0021 compatible:
0022 enum:
0023 - ti,ads7828
0024 - ti,ads7830
0025
0026 reg:
0027 maxItems: 1
0028
0029 ti,differential-input:
0030 description:
0031 Set to use the device in differential mode.
0032 type: boolean
0033
0034 vref-supply:
0035 description:
0036 The regulator to use as an external reference. If it does not exists the
0037 internal reference will be used.
0038
0039 required:
0040 - compatible
0041 - reg
0042
0043 additionalProperties: false
0044
0045 examples:
0046 - |
0047 i2c {
0048 #address-cells = <1>;
0049 #size-cells = <0>;
0050
0051 adc@48 {
0052 compatible = "ti,ads7828";
0053 reg = <0x48>;
0054 vref-supply = <&vref>;
0055 ti,differential-input;
0056 };
0057 };