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,tlc4541.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments TLC4541 and similar ADCs
8
9maintainers:
10  - Phil Reid <preid@electromag.com.au>
11
12description: |
13  14/16bit single channel ADC with SPI interface.
14
15properties:
16  compatible:
17    enum:
18      - ti,tlc3541
19      - ti,tlc4541
20
21  reg:
22    maxItems: 1
23
24  spi-max-frequency: true
25
26  vref-supply: true
27
28  "#io-channel-cells":
29    const: 1
30
31required:
32  - compatible
33  - reg
34  - vref-supply
35
36additionalProperties: false
37
38examples:
39  - |
40    spi {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        adc@0 {
45            compatible = "ti,tlc4541";
46            reg = <0>;
47            vref-supply = <&vdd_supply>;
48            spi-max-frequency = <200000>;
49            #io-channel-cells = <1>;
50        };
51    };
52...
53