xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad5380.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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
42required:
43  - compatible
44  - reg
45
46allOf:
47  - $ref: /schemas/spi/spi-peripheral-props.yaml#
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    spi {
54        #address-cells = <1>;
55        #size-cells = <0>;
56        dac@0 {
57           reg = <0>;
58           compatible = "adi,ad5390-5";
59           vref-supply = <&dacvref>;
60        };
61    };
62  - |
63    i2c {
64       #address-cells = <1>;
65       #size-cells = <0>;
66       dac@42 {
67          reg = <0x42>;
68          compatible = "adi,ad5380-3";
69       };
70    };
71...
72