xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad5764.yaml (revision 3a3af6b2a160bea72509a9d5ef84e25906b0478a)
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  spi-max-frequency: true
26
27  vrefAB-supply: true
28  vrefCD-supply: true
29
30additionalProperties: false
31
32required:
33  - compatible
34  - reg
35
36allOf:
37  - if:
38      properties:
39        compatible:
40          contains:
41            enum:
42              - adi,ad5744
43              - adi,ad5764
44    then:
45      required:
46        - vrefAB-supply
47        - vrefCD-supply
48
49examples:
50  - |
51    spi {
52        #address-cells = <1>;
53        #size-cells = <0>;
54
55        dac@0 {
56            compatible = "adi,ad5744";
57            reg = <0>;
58            vrefAB-supply = <&dac_vref>;
59            vrefCD-supply = <&dac_vref>;
60        };
61    };
62...
63