1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/dac/adi,ad5761.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD5761 and similar DACs
8
9maintainers:
10  - Ricardo Ribalda <ribalda@kernel.org>
11  - Jonathan Cameron <jic23@kernel.org>
12
13properties:
14
15  compatible:
16    enum:
17      - adi,ad5721
18      - adi,ad5721r
19      - adi,ad5761
20      - adi,ad5761r
21
22  reg:
23    maxItems: 1
24
25  vref-supply:
26    description: If not supplied, internal reference will be used.
27
28required:
29  - compatible
30  - reg
31
32allOf:
33  - $ref: /schemas/spi/spi-peripheral-props.yaml#
34  - if:
35      properties:
36        compatible:
37          contains:
38            enum:
39              - adi,ad5721
40              - adi,ad5761
41    then:
42      required:
43        - vref-supply
44
45unevaluatedProperties: false
46
47examples:
48  - |
49    spi {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        dac@0 {
54            compatible = "adi,ad5721";
55            reg = <0>;
56            vref-supply = <&dac_vref>;
57        };
58    };
59...
60