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