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