xref: /linux/Documentation/devicetree/bindings/iio/dac/adi,ad5791.yaml (revision f0b7a0d1d46625db5b0e631c05ae96d78eda6c70)
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,ad5791.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD5791 and similar DACs
8
9maintainers:
10  - Michael Hennerich <michael.hennerich@analog.com>
11  - Jonathan Cameron <jic23@kernel.org>
12
13properties:
14
15  compatible:
16    enum:
17      - adi,ad5760
18      - adi,ad5780
19      - adi,ad5781
20      - adi,ad5790
21      - adi,ad5791
22
23  reg:
24    maxItems: 1
25
26  vdd-supply: true
27  vss-supply: true
28
29  adi,rbuf-gain2-en:
30    description: Specify to allow an external amplifier to be connected in a
31      gain of two configuration.
32    type: boolean
33
34required:
35  - compatible
36  - reg
37  - vdd-supply
38  - vss-supply
39
40allOf:
41  - $ref: /schemas/spi/spi-peripheral-props.yaml#
42
43unevaluatedProperties: false
44
45examples:
46  - |
47    spi {
48        #address-cells = <1>;
49        #size-cells = <0>;
50
51        dac@0 {
52            compatible = "adi,ad5791";
53            reg = <0>;
54            vss-supply = <&dac_vss>;
55            vdd-supply = <&dac_vdd>;
56        };
57    };
58...
59