xref: /linux/Documentation/devicetree/bindings/iio/dac/adi,ad8801.yaml (revision 4b132aacb0768ac1e652cf517097ea6f237214b9)
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  vrefh-supply: true
23  vrefl-supply: true
24
25required:
26  - compatible
27  - reg
28  - vrefh-supply
29
30allOf:
31  - $ref: /schemas/spi/spi-peripheral-props.yaml#
32  - if:
33      properties:
34        compatible:
35          contains:
36            const: adi,ad8803
37    then:
38      required:
39        - vrefl-supply
40    else:
41      properties:
42        vrefl-supply: false
43
44unevaluatedProperties: false
45
46examples:
47  - |
48    spi {
49        #address-cells = <1>;
50        #size-cells = <0>;
51
52        dac@0 {
53            compatible = "adi,ad8803";
54            reg = <0>;
55            vrefl-supply = <&dac_vrefl>;
56            vrefh-supply = <&dac_vrefh>;
57        };
58    };
59...
60