xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad5360.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,ad5360.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Analog Devices AD5360 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 Vadotproperties:
14354d7675SEmmanuel Vadot  compatible:
15354d7675SEmmanuel Vadot    enum:
16354d7675SEmmanuel Vadot      - adi,ad5360
17354d7675SEmmanuel Vadot      - adi,ad5361
18354d7675SEmmanuel Vadot      - adi,ad5363
19354d7675SEmmanuel Vadot      - adi,ad5370
20354d7675SEmmanuel Vadot      - adi,ad5371
21354d7675SEmmanuel Vadot      - adi,ad5372
22354d7675SEmmanuel Vadot      - adi,ad5373
23354d7675SEmmanuel Vadot
24354d7675SEmmanuel Vadot  reg:
25354d7675SEmmanuel Vadot    maxItems: 1
26354d7675SEmmanuel Vadot
27354d7675SEmmanuel Vadot  vref0-supply: true
28354d7675SEmmanuel Vadot  vref1-supply: true
29354d7675SEmmanuel Vadot  vref2-supply: true
30354d7675SEmmanuel Vadot
31354d7675SEmmanuel Vadotrequired:
32354d7675SEmmanuel Vadot  - compatible
33354d7675SEmmanuel Vadot  - reg
34354d7675SEmmanuel Vadot  - vref0-supply
35354d7675SEmmanuel Vadot  - vref1-supply
36354d7675SEmmanuel Vadot
37354d7675SEmmanuel VadotallOf:
38*7ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
39354d7675SEmmanuel Vadot  - if:
40354d7675SEmmanuel Vadot      properties:
41354d7675SEmmanuel Vadot        compatible:
42354d7675SEmmanuel Vadot          contains:
43354d7675SEmmanuel Vadot            enum:
44354d7675SEmmanuel Vadot              - adi,ad5360
45354d7675SEmmanuel Vadot              - adi,ad5361
46354d7675SEmmanuel Vadot              - adi,ad5363
47354d7675SEmmanuel Vadot              - adi,ad5370
48354d7675SEmmanuel Vadot              - adi,ad5372
49354d7675SEmmanuel Vadot              - adi,ad5373
50354d7675SEmmanuel Vadot    then:
51354d7675SEmmanuel Vadot      properties:
52354d7675SEmmanuel Vadot        vref2-supply: false
53354d7675SEmmanuel Vadot  - if:
54354d7675SEmmanuel Vadot      properties:
55354d7675SEmmanuel Vadot        compatible:
56354d7675SEmmanuel Vadot          contains:
57354d7675SEmmanuel Vadot            enum:
58354d7675SEmmanuel Vadot              - adi,ad5371
59354d7675SEmmanuel Vadot    then:
60354d7675SEmmanuel Vadot      required:
61354d7675SEmmanuel Vadot        - vref2-supply
62354d7675SEmmanuel Vadot
63*7ef62cebSEmmanuel VadotunevaluatedProperties: false
64*7ef62cebSEmmanuel Vadot
65354d7675SEmmanuel Vadotexamples:
66354d7675SEmmanuel Vadot  - |
67354d7675SEmmanuel Vadot    spi {
68354d7675SEmmanuel Vadot        #address-cells = <1>;
69354d7675SEmmanuel Vadot        #size-cells = <0>;
70354d7675SEmmanuel Vadot        dac@0 {
71354d7675SEmmanuel Vadot            reg = <0>;
72354d7675SEmmanuel Vadot            compatible = "adi,ad5371";
73354d7675SEmmanuel Vadot            vref0-supply = <&dac_vref0>;
74354d7675SEmmanuel Vadot            vref1-supply = <&dac_vref1>;
75354d7675SEmmanuel Vadot            vref2-supply = <&dac_vref2>;
76354d7675SEmmanuel Vadot        };
77354d7675SEmmanuel Vadot    };
78354d7675SEmmanuel Vadot...
79