summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/iio/dac/lltc,ltc2632.yaml
blob: b1eb77335d05ac8ba2406c1578fd403fba9750d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
%YAML 1.2
---
$id: "http://devicetree.org/schemas/iio/dac/lltc,ltc2632.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Linear Technology LTC263x 12-/10-/8-Bit Rail-to-Rail DAC

maintainers:
  - Michael Hennerich <michael.hennerich@analog.com>

description: |
  Bindings for the Linear Technology LTC2632/2634/2636 DAC
  Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/LTC263[246].pdf

properties:
  compatible:
    enum:
      - lltc,ltc2632-l12
      - lltc,ltc2632-l10
      - lltc,ltc2632-l8
      - lltc,ltc2632-h12
      - lltc,ltc2632-h10
      - lltc,ltc2632-h8
      - lltc,ltc2634-l12
      - lltc,ltc2634-l10
      - lltc,ltc2634-l8
      - lltc,ltc2634-h12
      - lltc,ltc2634-h10
      - lltc,ltc2634-h8
      - lltc,ltc2636-l12
      - lltc,ltc2636-l10
      - lltc,ltc2636-l8
      - lltc,ltc2636-h12
      - lltc,ltc2636-h10
      - lltc,ltc2636-h8

  reg:
    maxItems: 1

  spi-max-frequency:
    maximum: 2000000

  vref-supply:
    description:
      Phandle to the external reference voltage supply. This should
      only be set if there is an external reference voltage connected to the VREF
      pin. If the property is not set the internal reference is used.

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    vref: regulator-vref {
        compatible = "regulator-fixed";
        regulator-name = "vref-ltc2632";
        regulator-min-microvolt = <1250000>;
        regulator-max-microvolt = <1250000>;
        regulator-always-on;
    };

    spi {
      #address-cells = <1>;
      #size-cells = <0>;

      dac@0 {
        compatible = "lltc,ltc2632-l12";
        reg = <0>;    /* CS0 */
        spi-max-frequency = <1000000>;
        vref-supply = <&vref>;
      };
    };
...