GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / iio / dac / ti,dac082s085.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/dac/ti,dac082s085.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Texas Instruments DAC082s085 and similar DACs
8
9 description:
10   A family of Texas Instruments 8/10/12-bit 2/4-channel DACs
11
12 maintainers:
13   - Lukas Wunner <lukas@wunner.de>
14
15 properties:
16   compatible:
17     enum:
18       - ti,dac082s085
19       - ti,dac102s085
20       - ti,dac122s085
21       - ti,dac084s085
22       - ti,dac104s085
23       - ti,dac124s085
24
25   reg:
26     maxItems: 1
27
28   spi-cpha: true
29   spi-cpol:
30     description:
31       Must be either spi-cpha, or spi-cpol but not both.
32
33   vref-supply:
34     description: Needed to provide output scaling.
35
36 required:
37   - compatible
38   - reg
39   - vref-supply
40
41 oneOf:
42   - required:
43       - spi-cpha
44   - required:
45       - spi-cpol
46
47 allOf:
48   - $ref: /schemas/spi/spi-peripheral-props.yaml#
49
50 unevaluatedProperties: false
51
52 examples:
53   - |
54     vref_2v5_reg: regulator-vref {
55         compatible = "regulator-fixed";
56         regulator-name = "2v5";
57         regulator-min-microvolt = <2500000>;
58         regulator-max-microvolt = <2500000>;
59         regulator-always-on;
60     };
61     spi {
62         #address-cells = <1>;
63         #size-cells = <0>;
64
65         dac@0 {
66             compatible = "ti,dac082s085";
67             reg = <0>;
68             spi-max-frequency = <40000000>;
69             spi-cpol;
70             vref-supply = <&vref_2v5_reg>;
71         };
72     };
73 ...