xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad5360.yaml (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
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,ad5360.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD5360 and similar DACs
8
9maintainers:
10  - Lars-Peter Clausen <lars@metafoo.de>
11  - Jonathan Cameron <jic23@kernel.org>
12
13properties:
14  compatible:
15    enum:
16      - adi,ad5360
17      - adi,ad5361
18      - adi,ad5363
19      - adi,ad5370
20      - adi,ad5371
21      - adi,ad5372
22      - adi,ad5373
23
24  reg:
25    maxItems: 1
26
27  vref0-supply: true
28  vref1-supply: true
29  vref2-supply: true
30
31  spi-max-frequency: true
32
33additionalProperties: false
34
35required:
36  - compatible
37  - reg
38  - vref0-supply
39  - vref1-supply
40
41allOf:
42  - if:
43      properties:
44        compatible:
45          contains:
46            enum:
47              - adi,ad5360
48              - adi,ad5361
49              - adi,ad5363
50              - adi,ad5370
51              - adi,ad5372
52              - adi,ad5373
53    then:
54      properties:
55        vref2-supply: false
56  - if:
57      properties:
58        compatible:
59          contains:
60            enum:
61              - adi,ad5371
62    then:
63      required:
64        - vref2-supply
65
66examples:
67  - |
68    spi {
69        #address-cells = <1>;
70        #size-cells = <0>;
71        dac@0 {
72            reg = <0>;
73            compatible = "adi,ad5371";
74            vref0-supply = <&dac_vref0>;
75            vref1-supply = <&dac_vref1>;
76            vref2-supply = <&dac_vref2>;
77        };
78    };
79...
80