Merge tag 'mips_5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / iio / dac / adi,ad5761.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,ad5761.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Analog Devices AD5761 and similar DACs
8
9 maintainers:
10   - Ricardo Ribalda <ribalda@kernel.org>
11   - Jonathan Cameron <jic23@kernel.org>
12
13 properties:
14
15   compatible:
16     enum:
17       - adi,ad5721
18       - adi,ad5721r
19       - adi,ad5761
20       - adi,ad5761r
21
22   reg:
23     maxItems: 1
24
25   spi-max-frequency: true
26
27   vref-supply:
28     description: If not supplied, internal reference will be used.
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,ad5721
43               - adi,ad5761
44     then:
45       required:
46         - vref-supply
47
48 examples:
49   - |
50     spi {
51         #address-cells = <1>;
52         #size-cells = <0>;
53
54         dac@0 {
55             compatible = "adi,ad5721";
56             reg = <0>;
57             vref-supply = <&dac_vref>;
58         };
59     };
60 ...