Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / iio / adc / ti,adc128s052.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,adc128s052.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Texas Instruments ADC128S052 and similar ADCs
8
9 maintainers:
10   - Angelo Compagnucci <angelo.compagnucci@gmail.com>
11
12 description: |
13   Family of 12 bit SPI ADCs with 2 to 8 channels with a range of different
14   target sample rates.
15
16 properties:
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
37 required:
38   - compatible
39   - reg
40   - vref-supply
41
42 additionalProperties: false
43
44 examples:
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 ...