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
7title: Texas Instruments DAC082s085 and similar DACs
8
9description:
10  A family of Texas Instruments 8/10/12-bit 2/4-channel DACs
11
12maintainers:
13  - Lukas Wunner <lukas@wunner.de>
14
15properties:
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
36required:
37  - compatible
38  - reg
39  - vref-supply
40
41oneOf:
42  - required:
43      - spi-cpha
44  - required:
45      - spi-cpol
46
47allOf:
48  - $ref: /schemas/spi/spi-peripheral-props.yaml#
49
50unevaluatedProperties: false
51
52examples:
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...
74