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,adc084s021.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments ADC084S021 ADC
8
9maintainers:
10  - Mårten Lindahl <martenli@axis.com>
11
12description: |
13  8 bit ADC with 4 channels
14
15properties:
16  compatible:
17    const: ti,adc084s021
18
19  reg:
20    maxItems: 1
21
22  spi-max-frequency: true
23
24  vref-supply:
25    description: External reference, needed to establish input scaling
26
27  spi-cpol: true
28  spi-cpha: true
29
30  "#io-channel-cells":
31    const: 1
32
33required:
34  - compatible
35  - reg
36  - vref-supply
37  - spi-cpol
38  - spi-cpha
39
40additionalProperties: false
41
42examples:
43  - |
44    spi {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        adc@0 {
49            compatible = "ti,adc084s021";
50            reg = <0>;
51            vref-supply = <&adc_vref>;
52            spi-cpol;
53            spi-cpha;
54            spi-max-frequency = <16000000>;
55            #io-channel-cells = <1>;
56        };
57    };
58...
59