1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/iio/dac/lltc,ltc2632.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Linear Technology LTC263x 12-/10-/8-Bit Rail-to-Rail DAC
8
9maintainers:
10  - Michael Hennerich <michael.hennerich@analog.com>
11
12description: |
13  Bindings for the Linear Technology LTC2632/2634/2636 DAC
14  Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/LTC263[246].pdf
15
16properties:
17  compatible:
18    enum:
19      - lltc,ltc2632-l12
20      - lltc,ltc2632-l10
21      - lltc,ltc2632-l8
22      - lltc,ltc2632-h12
23      - lltc,ltc2632-h10
24      - lltc,ltc2632-h8
25      - lltc,ltc2634-l12
26      - lltc,ltc2634-l10
27      - lltc,ltc2634-l8
28      - lltc,ltc2634-h12
29      - lltc,ltc2634-h10
30      - lltc,ltc2634-h8
31      - lltc,ltc2636-l12
32      - lltc,ltc2636-l10
33      - lltc,ltc2636-l8
34      - lltc,ltc2636-h12
35      - lltc,ltc2636-h10
36      - lltc,ltc2636-h8
37
38  reg:
39    maxItems: 1
40
41  spi-max-frequency:
42    maximum: 2000000
43
44  vref-supply:
45    description:
46      Phandle to the external reference voltage supply. This should
47      only be set if there is an external reference voltage connected to the VREF
48      pin. If the property is not set the internal reference is used.
49
50required:
51  - compatible
52  - reg
53
54additionalProperties: false
55
56examples:
57  - |
58    vref: regulator-vref {
59        compatible = "regulator-fixed";
60        regulator-name = "vref-ltc2632";
61        regulator-min-microvolt = <1250000>;
62        regulator-max-microvolt = <1250000>;
63        regulator-always-on;
64    };
65
66    spi {
67      #address-cells = <1>;
68      #size-cells = <0>;
69
70      dac@0 {
71        compatible = "lltc,ltc2632";
72        reg = <0>;    /* CS0 */
73        spi-max-frequency = <1000000>;
74        vref-supply = <&vref>;
75      };
76    };
77...
78