xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/ti,adc0832.yaml (revision dd41de95a84d979615a2ef11df6850622bf6184e)
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,adc0832.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments ADC0832 and similar ADCs
8
9maintainers:
10  - Akinobu Mita <akinobu.mita@gmail.com>
11
12description: |
13  8 bit ADCs with 1, 2, 4 or 8 inputs for single ended or differential
14  conversion.
15
16properties:
17  compatible:
18    enum:
19      - ti,adc0831
20      - ti,adc0832
21      - ti,adc0834
22      - ti,adc0838
23
24  reg:
25    maxItems: 1
26
27  spi-max-frequency: true
28
29  vref-supply:
30    description: External reference, needed to establish input scaling
31
32  "#io-channel-cells":
33    const: 1
34
35required:
36  - compatible
37  - reg
38  - vref-supply
39
40additionalProperties: false
41
42examples:
43  - |
44    spi {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        adc@0 {
49            compatible = "ti,adc0832";
50            reg = <0>;
51            vref-supply = <&vdd_supply>;
52            spi-max-frequency = <200000>;
53            #io-channel-cells = <1>;
54        };
55    };
56...
57