xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad5380.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/adi,ad5380.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Analog Devices AD5380 and similar DACs
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Lars-Peter Clausen <lars@metafoo.de>
11354d7675SEmmanuel Vadot  - Jonathan Cameron <jic23@kernel.org>
12354d7675SEmmanuel Vadot
13354d7675SEmmanuel Vadotdescription: |
14354d7675SEmmanuel Vadot  DAC devices supporting both SPI and I2C interfaces.
15*cb7aa33aSEmmanuel Vadot
16354d7675SEmmanuel Vadotproperties:
17354d7675SEmmanuel Vadot  compatible:
18354d7675SEmmanuel Vadot    enum:
19354d7675SEmmanuel Vadot      - adi,ad5380-3
20354d7675SEmmanuel Vadot      - adi,ad5380-5
21354d7675SEmmanuel Vadot      - adi,ad5381-3
22354d7675SEmmanuel Vadot      - adi,ad5381-5
23354d7675SEmmanuel Vadot      - adi,ad5382-3
24354d7675SEmmanuel Vadot      - adi,ad5382-5
25354d7675SEmmanuel Vadot      - adi,ad5383-3
26354d7675SEmmanuel Vadot      - adi,ad5383-5
27354d7675SEmmanuel Vadot      - adi,ad5384-3
28354d7675SEmmanuel Vadot      - adi,ad5384-5
29354d7675SEmmanuel Vadot      - adi,ad5390-3
30354d7675SEmmanuel Vadot      - adi,ad5390-5
31354d7675SEmmanuel Vadot      - adi,ad5391-3
32354d7675SEmmanuel Vadot      - adi,ad5391-5
33354d7675SEmmanuel Vadot      - adi,ad5392-3
34354d7675SEmmanuel Vadot      - adi,ad5392-5
35354d7675SEmmanuel Vadot
36354d7675SEmmanuel Vadot  reg:
37354d7675SEmmanuel Vadot    maxItems: 1
38354d7675SEmmanuel Vadot
39354d7675SEmmanuel Vadot  vref-supply:
40354d7675SEmmanuel Vadot    description:
41354d7675SEmmanuel Vadot      If not supplied devices will use internal regulators.
42354d7675SEmmanuel Vadot
43354d7675SEmmanuel Vadotrequired:
44354d7675SEmmanuel Vadot  - compatible
45354d7675SEmmanuel Vadot  - reg
46354d7675SEmmanuel Vadot
477ef62cebSEmmanuel VadotallOf:
487ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
497ef62cebSEmmanuel Vadot
507ef62cebSEmmanuel VadotunevaluatedProperties: false
517ef62cebSEmmanuel Vadot
52354d7675SEmmanuel Vadotexamples:
53354d7675SEmmanuel Vadot  - |
54354d7675SEmmanuel Vadot    spi {
55354d7675SEmmanuel Vadot        #address-cells = <1>;
56354d7675SEmmanuel Vadot        #size-cells = <0>;
57354d7675SEmmanuel Vadot        dac@0 {
58354d7675SEmmanuel Vadot           reg = <0>;
59354d7675SEmmanuel Vadot           compatible = "adi,ad5390-5";
60354d7675SEmmanuel Vadot           vref-supply = <&dacvref>;
61354d7675SEmmanuel Vadot        };
62354d7675SEmmanuel Vadot    };
63354d7675SEmmanuel Vadot  - |
64354d7675SEmmanuel Vadot    i2c {
65354d7675SEmmanuel Vadot       #address-cells = <1>;
66354d7675SEmmanuel Vadot       #size-cells = <0>;
67354d7675SEmmanuel Vadot       dac@42 {
68354d7675SEmmanuel Vadot          reg = <0x42>;
69354d7675SEmmanuel Vadot          compatible = "adi,ad5380-3";
70354d7675SEmmanuel Vadot       };
71354d7675SEmmanuel Vadot    };
72354d7675SEmmanuel Vadot...
73