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,ad5380.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD5380 and similar DACs
8
9maintainers:
10  - Lars-Peter Clausen <lars@metafoo.de>
11  - Jonathan Cameron <jic23@kernel.org>
12
13description: |
14  DAC devices supporting both SPI and I2C interfaces.
15properties:
16  compatible:
17    enum:
18      - adi,ad5380-3
19      - adi,ad5380-5
20      - adi,ad5381-3
21      - adi,ad5381-5
22      - adi,ad5382-3
23      - adi,ad5382-5
24      - adi,ad5383-3
25      - adi,ad5383-5
26      - adi,ad5384-3
27      - adi,ad5384-5
28      - adi,ad5390-3
29      - adi,ad5390-5
30      - adi,ad5391-3
31      - adi,ad5391-5
32      - adi,ad5392-3
33      - adi,ad5392-5
34
35  reg:
36    maxItems: 1
37
38  vref-supply:
39    description:
40      If not supplied devices will use internal regulators.
41
42  spi-max-frequency: true
43
44additionalProperties: false
45
46required:
47  - compatible
48  - reg
49
50examples:
51  - |
52    spi {
53        #address-cells = <1>;
54        #size-cells = <0>;
55        dac@0 {
56           reg = <0>;
57           compatible = "adi,ad5390-5";
58           vref-supply = <&dacvref>;
59        };
60    };
61  - |
62    i2c {
63       #address-cells = <1>;
64       #size-cells = <0>;
65       dac@42 {
66          reg = <0x42>;
67          compatible = "adi,ad5380-3";
68       };
69    };
70...
71