xref: /linux/Documentation/devicetree/bindings/hwmon/ti,adc128d818.yaml (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
1*7f75d4b1SJavier Carrasco# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*7f75d4b1SJavier Carrasco%YAML 1.2
3*7f75d4b1SJavier Carrasco---
4*7f75d4b1SJavier Carrasco
5*7f75d4b1SJavier Carrasco$id: http://devicetree.org/schemas/hwmon/ti,adc128d818.yaml#
6*7f75d4b1SJavier Carrasco$schema: http://devicetree.org/meta-schemas/core.yaml#
7*7f75d4b1SJavier Carrasco
8*7f75d4b1SJavier Carrascotitle: Texas Instruments ADC128D818 ADC System Monitor With Temperature Sensor
9*7f75d4b1SJavier Carrasco
10*7f75d4b1SJavier Carrascomaintainers:
11*7f75d4b1SJavier Carrasco  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
12*7f75d4b1SJavier Carrasco
13*7f75d4b1SJavier Carrascodescription: |
14*7f75d4b1SJavier Carrasco  The ADC128D818 is a 12-Bit, 8-Channel Analog to Digital Converter (ADC)
15*7f75d4b1SJavier Carrasco  with a temperature sensor and an I2C interface.
16*7f75d4b1SJavier Carrasco
17*7f75d4b1SJavier Carrasco  Datasheets:
18*7f75d4b1SJavier Carrasco    https://www.ti.com/product/ADC128D818
19*7f75d4b1SJavier Carrasco
20*7f75d4b1SJavier Carrascoproperties:
21*7f75d4b1SJavier Carrasco  compatible:
22*7f75d4b1SJavier Carrasco    const: ti,adc128d818
23*7f75d4b1SJavier Carrasco
24*7f75d4b1SJavier Carrasco  reg:
25*7f75d4b1SJavier Carrasco    maxItems: 1
26*7f75d4b1SJavier Carrasco
27*7f75d4b1SJavier Carrasco  ti,mode:
28*7f75d4b1SJavier Carrasco    $ref: /schemas/types.yaml#/definitions/uint8
29*7f75d4b1SJavier Carrasco    description: |
30*7f75d4b1SJavier Carrasco      Operation mode.
31*7f75d4b1SJavier Carrasco      Mode 0  - 7 single-ended voltage readings (IN0-IN6), 1 temperature
32*7f75d4b1SJavier Carrasco      reading (internal).
33*7f75d4b1SJavier Carrasco      Mode 1 - 8 single-ended voltage readings (IN0-IN7), no temperature.
34*7f75d4b1SJavier Carrasco      Mode 2 - 4 pseudo-differential voltage readings
35*7f75d4b1SJavier Carrasco      (IN0-IN1, IN3-IN2, IN4-IN5, IN7-IN6), 1 temperature reading (internal).
36*7f75d4b1SJavier Carrasco      Mode 3 - 4 single-ended voltage readings (IN0-IN3), 2 pseudo-differential
37*7f75d4b1SJavier Carrasco      voltage readings (IN4-IN5, IN7-IN6), 1 temperature reading (internal).
38*7f75d4b1SJavier Carrasco    default: 0
39*7f75d4b1SJavier Carrasco
40*7f75d4b1SJavier Carrasco  vref-supply:
41*7f75d4b1SJavier Carrasco    description:
42*7f75d4b1SJavier Carrasco      The regulator to use as an external reference. If it does not exist, the
43*7f75d4b1SJavier Carrasco      internal reference will be used.
44*7f75d4b1SJavier Carrasco
45*7f75d4b1SJavier Carrascorequired:
46*7f75d4b1SJavier Carrasco  - compatible
47*7f75d4b1SJavier Carrasco  - reg
48*7f75d4b1SJavier Carrasco
49*7f75d4b1SJavier CarrascoadditionalProperties: false
50*7f75d4b1SJavier Carrasco
51*7f75d4b1SJavier Carrascoexamples:
52*7f75d4b1SJavier Carrasco  - |
53*7f75d4b1SJavier Carrasco    i2c {
54*7f75d4b1SJavier Carrasco        #address-cells = <1>;
55*7f75d4b1SJavier Carrasco        #size-cells = <0>;
56*7f75d4b1SJavier Carrasco
57*7f75d4b1SJavier Carrasco        adc@1d {
58*7f75d4b1SJavier Carrasco            compatible = "ti,adc128d818";
59*7f75d4b1SJavier Carrasco            reg = <0x1d>;
60*7f75d4b1SJavier Carrasco            vref-supply = <&vref>;
61*7f75d4b1SJavier Carrasco            ti,mode = /bits/ 8 <2>;
62*7f75d4b1SJavier Carrasco        };
63*7f75d4b1SJavier Carrasco    };
64