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,ad8801.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD8801 and AD8803 DACs
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11
12properties:
13
14  compatible:
15    enum:
16      - adi,ad8801
17      - adi,ad8803
18
19  reg:
20    maxItems: 1
21
22  spi-max-frequency: true
23
24  vrefh-supply: true
25  vrefl-supply: true
26
27additionalProperties: false
28
29required:
30  - compatible
31  - reg
32  - vrefh-supply
33
34allOf:
35  - if:
36      properties:
37        compatible:
38          contains:
39            const: adi,ad8803
40    then:
41      required:
42        - vrefl-supply
43    else:
44      properties:
45        vrefl-supply: false
46
47examples:
48  - |
49    spi {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        dac@0 {
54            compatible = "adi,ad8803";
55            reg = <0>;
56            vrefl-supply = <&dac_vrefl>;
57            vrefh-supply = <&dac_vrefh>;
58        };
59    };
60...
61