xref: /linux/Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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,ad5764.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD5744 and AD5764 DAC families
8
9maintainers:
10  - Lars-Peter Clausen <lars@metafoo.de>
11  - Jonathan Cameron <jic23@kernel.org>
12
13properties:
14
15  compatible:
16    enum:
17      - adi,ad5744
18      - adi,ad5744r
19      - adi,ad5764
20      - adi,ad5764r
21
22  reg:
23    maxItems: 1
24
25  vrefAB-supply: true
26  vrefCD-supply: true
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,ad5744
40              - adi,ad5764
41    then:
42      required:
43        - vrefAB-supply
44        - vrefCD-supply
45
46unevaluatedProperties: false
47
48examples:
49  - |
50    spi {
51        #address-cells = <1>;
52        #size-cells = <0>;
53
54        dac@0 {
55            compatible = "adi,ad5744";
56            reg = <0>;
57            vrefAB-supply = <&dac_vref>;
58            vrefCD-supply = <&dac_vref>;
59        };
60    };
61...
62