xref: /linux/Documentation/devicetree/bindings/iio/dac/adi,ad7303.yaml (revision b83deaa741558babf4b8d51d34f6637ccfff1b26)
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,ad7303.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD7303 DAC
8
9maintainers:
10  - Lars-Peter Clausen <lars@metafoo.de>
11
12properties:
13  compatible:
14    const: adi,ad7303
15
16  reg:
17    maxItems: 1
18
19  Vdd-supply:
20    description:
21      Used to calculate output channel scalling if REF-supply not specified.
22  REF-supply:
23    description:
24      If not provided, Vdd/2 is used as the reference voltage.
25
26  spi-max-frequency:
27    maximum: 30000000
28
29required:
30  - compatible
31  - reg
32  - Vdd-supply
33
34additionalProperties: false
35
36examples:
37  - |
38    spi {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        dac@4 {
43            compatible = "adi,ad7303";
44            reg = <4>;
45            spi-max-frequency = <10000000>;
46            Vdd-supply = <&vdd_supply>;
47            REF-supply = <&vref_supply>;
48        };
49    };
50...
51