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