Merge tag 'for-5.15/io_uring-2021-09-04' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / iio / dac / adi,ad5764.yaml
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
7 title: Analog Devices AD5744 and AD5764 DAC families
8
9 maintainers:
10   - Lars-Peter Clausen <lars@metafoo.de>
11   - Jonathan Cameron <jic23@kernel.org>
12
13 properties:
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
30 additionalProperties: false
31
32 required:
33   - compatible
34   - reg
35
36 allOf:
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
49 examples:
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 ...