Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: Introduce ADS7138

Add documentation for the driver of ADS7128 and ADS7138 12-bit, 8-channel
analog-to-digital converters. These ADCs have a wide operating range and
a wide feature set. Communication is based on the I2C interface.
ADS7128 differs in the addition of further hardware features, like a
root-mean-square (RMS) and a zero-crossing-detect (ZCD) module.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Tobias Sperling <tobias.sperling@softing.com>
Link: https://patch.msgid.link/20250213-adc_ml-v4-1-66b68f8fdb8c@softing.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Tobias Sperling and committed by
Jonathan Cameron
f3255b0e b29050e8

+63
+63
Documentation/devicetree/bindings/iio/adc/ti,ads7138.yaml
··· 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 + 7 + title: Texas Instruments ADS7128/ADS7138 analog-to-digital converter (ADC) 8 + 9 + maintainers: 10 + - Tobias Sperling <tobias.sperling@softing.com> 11 + 12 + description: | 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 + 23 + properties: 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 + 41 + required: 42 + - compatible 43 + - reg 44 + - avdd-supply 45 + 46 + additionalProperties: false 47 + 48 + examples: 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 = <&reg_stb_3v3>; 59 + interrupt-parent = <&gpio2>; 60 + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; 61 + }; 62 + }; 63 + ...