xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad8801.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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,ad8801.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Analog Devices AD8801 and AD8803 DACs
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Jonathan Cameron <jic23@kernel.org>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel Vadotproperties:
13354d7675SEmmanuel Vadot
14354d7675SEmmanuel Vadot  compatible:
15354d7675SEmmanuel Vadot    enum:
16354d7675SEmmanuel Vadot      - adi,ad8801
17354d7675SEmmanuel Vadot      - adi,ad8803
18354d7675SEmmanuel Vadot
19354d7675SEmmanuel Vadot  reg:
20354d7675SEmmanuel Vadot    maxItems: 1
21354d7675SEmmanuel Vadot
22354d7675SEmmanuel Vadot  vrefh-supply: true
23354d7675SEmmanuel Vadot  vrefl-supply: true
24354d7675SEmmanuel Vadot
25354d7675SEmmanuel Vadotrequired:
26354d7675SEmmanuel Vadot  - compatible
27354d7675SEmmanuel Vadot  - reg
28354d7675SEmmanuel Vadot  - vrefh-supply
29354d7675SEmmanuel Vadot
30354d7675SEmmanuel VadotallOf:
31*7ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
32354d7675SEmmanuel Vadot  - if:
33354d7675SEmmanuel Vadot      properties:
34354d7675SEmmanuel Vadot        compatible:
35354d7675SEmmanuel Vadot          contains:
36354d7675SEmmanuel Vadot            const: adi,ad8803
37354d7675SEmmanuel Vadot    then:
38354d7675SEmmanuel Vadot      required:
39354d7675SEmmanuel Vadot        - vrefl-supply
40354d7675SEmmanuel Vadot    else:
41354d7675SEmmanuel Vadot      properties:
42354d7675SEmmanuel Vadot        vrefl-supply: false
43354d7675SEmmanuel Vadot
44*7ef62cebSEmmanuel VadotunevaluatedProperties: false
45*7ef62cebSEmmanuel Vadot
46354d7675SEmmanuel Vadotexamples:
47354d7675SEmmanuel Vadot  - |
48354d7675SEmmanuel Vadot    spi {
49354d7675SEmmanuel Vadot        #address-cells = <1>;
50354d7675SEmmanuel Vadot        #size-cells = <0>;
51354d7675SEmmanuel Vadot
52354d7675SEmmanuel Vadot        dac@0 {
53354d7675SEmmanuel Vadot            compatible = "adi,ad8803";
54354d7675SEmmanuel Vadot            reg = <0>;
55354d7675SEmmanuel Vadot            vrefl-supply = <&dac_vrefl>;
56354d7675SEmmanuel Vadot            vrefh-supply = <&dac_vrefh>;
57354d7675SEmmanuel Vadot        };
58354d7675SEmmanuel Vadot    };
59354d7675SEmmanuel Vadot...
60