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,dac7311.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments DAC5311 and similar SPI DACs
8
9maintainers:
10  - Charles-Antoine Couret <charles-antoine.couret@essensium.com>
11
12properties:
13  compatible:
14    enum:
15      - ti,dac7311
16      - ti,dac6311
17      - ti,dac5311
18
19  reg:
20    maxItems: 1
21
22  vref-supply:
23    description:
24      Reference voltage must be supplied to establish the scaling of the
25      output voltage.
26
27  spi-max-frequency: true
28
29required:
30  - compatible
31  - reg
32  - vref-supply
33
34additionalProperties: false
35
36examples:
37  - |
38    spi {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        dac@0 {
43            compatible = "ti,dac7311";
44            reg = <0>; /* CS0 */
45            spi-max-frequency = <1000000>;
46            vref-supply = <&vdd_supply>;
47        };
48    };
49...
50