1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/adc/ti,ads7138.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Texas Instruments ADS7128/ADS7138 analog-to-digital converter (ADC) 8 9maintainers: 10 - Tobias Sperling <tobias.sperling@softing.com> 11 12description: | 13 The ADS7128 and ADS7138 chips are 12-bit, 8 channel analog-to-digital 14 converters (ADC) with build-in digital window comparator (DWC), using the 15 I2C interface. 16 ADS7128 differs in the addition of further hardware features, like a 17 root-mean-square (RMS) and a zero-crossing-detect (ZCD) module. 18 19 Datasheets: 20 https://www.ti.com/product/ADS7128 21 https://www.ti.com/product/ADS7138 22 23properties: 24 compatible: 25 enum: 26 - ti,ads7128 27 - ti,ads7138 28 29 reg: 30 maxItems: 1 31 32 avdd-supply: 33 description: 34 The regulator used as analog supply voltage as well as reference voltage. 35 36 interrupts: 37 description: 38 Interrupt on ALERT pin, triggers on low level. 39 maxItems: 1 40 41required: 42 - compatible 43 - reg 44 - avdd-supply 45 46additionalProperties: false 47 48examples: 49 - | 50 #include <dt-bindings/interrupt-controller/irq.h> 51 i2c { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 55 adc@10 { 56 compatible = "ti,ads7138"; 57 reg = <0x10>; 58 avdd-supply = <®_stb_3v3>; 59 interrupt-parent = <&gpio2>; 60 interrupts = <12 IRQ_TYPE_LEVEL_LOW>; 61 }; 62 }; 63... 64