xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/ti,ads7950.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,ads7950.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments ADS7950 and similar ADCs
8
9maintainers:
10  - David Lechner <david@lechnology.com>
11
12description: |
13  Family of 4-16 channel, 8-12 bit ADCs with SPI interface.
14
15properties:
16  compatible:
17    enum:
18      - ti,ads7950
19      - ti,ads7951
20      - ti,ads7952
21      - ti,ads7953
22      - ti,ads7954
23      - ti,ads7955
24      - ti,ads7956
25      - ti,ads7957
26      - ti,ads7958
27      - ti,ads7959
28      - ti,ads7960
29      - ti,ads7961
30
31  reg:
32    maxItems: 1
33
34  spi-max-frequency:
35    maximum: 20000000
36
37  vref-supply:
38    description: Supplies the 2.5V or 5V reference voltage
39
40  "#io-channel-cells":
41    const: 1
42
43required:
44  - compatible
45  - reg
46  - vref-supply
47  - "#io-channel-cells"
48
49additionalProperties: false
50
51examples:
52  - |
53    spi {
54        #address-cells = <1>;
55        #size-cells = <0>;
56
57        adc@0 {
58            compatible = "ti,ads7957";
59            reg = <0>;
60            vref-supply = <&refin_supply>;
61            spi-max-frequency = <10000000>;
62            #io-channel-cells = <1>;
63        };
64    };
65...
66