xref: /linux/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml (revision 4fd18fc38757217c746aa063ba9e4729814dc737)
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,adc128s052.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments ADC128S052 and similar ADCs
8
9maintainers:
10  - Angelo Compagnucci <angelo.compagnucci@gmail.com>
11
12description: |
13  Family of 12 bit SPI ADCs with 2 to 8 channels with a range of different
14  target sample rates.
15
16properties:
17  compatible:
18    enum:
19      - ti,adc122s021
20      - ti,adc122s051
21      - ti,adc122s101
22      - ti,adc124s021
23      - ti,adc124s051
24      - ti,adc124s101
25      - ti,adc128s052
26
27  reg:
28    maxItems: 1
29
30  spi-max-frequency: true
31
32  vref-supply: true
33
34  "#io-channel-cells":
35    const: 1
36
37required:
38  - compatible
39  - reg
40  - vref-supply
41
42additionalProperties: false
43
44examples:
45  - |
46    #include <dt-bindings/interrupt-controller/irq.h>
47    spi {
48        #address-cells = <1>;
49        #size-cells = <0>;
50
51        adc@0 {
52            compatible = "ti,adc128s052";
53            reg = <0>;
54            vref-supply = <&vdd_supply>;
55            spi-max-frequency = <1000000>;
56            #io-channel-cells = <1>;
57        };
58    };
59...
60