xref: /linux/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
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  vref-supply: true
31
32  "#io-channel-cells":
33    const: 1
34
35required:
36  - compatible
37  - reg
38  - vref-supply
39
40allOf:
41  - $ref: /schemas/spi/spi-peripheral-props.yaml#
42
43unevaluatedProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48    spi {
49        #address-cells = <1>;
50        #size-cells = <0>;
51
52        adc@0 {
53            compatible = "ti,adc128s052";
54            reg = <0>;
55            vref-supply = <&vdd_supply>;
56            spi-max-frequency = <1000000>;
57            #io-channel-cells = <1>;
58        };
59    };
60...
61