xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/microchip,mcp4725.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot%YAML 1.2
3*5def4c47SEmmanuel Vadot---
4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/microchip,mcp4725.yaml#
5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5def4c47SEmmanuel Vadot
7*5def4c47SEmmanuel Vadottitle: Microchip mcp4725 and mcp4726 DAC
8*5def4c47SEmmanuel Vadot
9*5def4c47SEmmanuel Vadotmaintainers:
10*5def4c47SEmmanuel Vadot  - Tomas Novotny <tomas@novotny.cz>
11*5def4c47SEmmanuel Vadot
12*5def4c47SEmmanuel Vadotproperties:
13*5def4c47SEmmanuel Vadot  compatible:
14*5def4c47SEmmanuel Vadot    enum:
15*5def4c47SEmmanuel Vadot      - microchip,mcp4725
16*5def4c47SEmmanuel Vadot      - microchip,mcp4726
17*5def4c47SEmmanuel Vadot
18*5def4c47SEmmanuel Vadot  reg:
19*5def4c47SEmmanuel Vadot    maxItems: 1
20*5def4c47SEmmanuel Vadot
21*5def4c47SEmmanuel Vadot  vdd-supply:
22*5def4c47SEmmanuel Vadot    description: |
23*5def4c47SEmmanuel Vadot      Provides both power and acts as the reference supply on the mcp4725.
24*5def4c47SEmmanuel Vadot      For the mcp4726 it will be used as the reference voltage if vref-supply
25*5def4c47SEmmanuel Vadot      is not provided.
26*5def4c47SEmmanuel Vadot
27*5def4c47SEmmanuel Vadot  vref-supply:
28*5def4c47SEmmanuel Vadot    description:
29*5def4c47SEmmanuel Vadot      Vref pin is used as a voltage reference when this supply is specified.
30*5def4c47SEmmanuel Vadot
31*5def4c47SEmmanuel Vadot  microchip,vref-buffered:
32*5def4c47SEmmanuel Vadot    type: boolean
33*5def4c47SEmmanuel Vadot    description: |
34*5def4c47SEmmanuel Vadot      Enable buffering of the external Vref pin. This boolean is not valid
35*5def4c47SEmmanuel Vadot      without the vref-supply. Quoting the datasheet: This is offered in
36*5def4c47SEmmanuel Vadot      cases where the reference voltage does not have the current
37*5def4c47SEmmanuel Vadot      capability not to drop its voltage when connected to the internal
38*5def4c47SEmmanuel Vadot      resistor ladder circuit.
39*5def4c47SEmmanuel Vadot
40*5def4c47SEmmanuel VadotallOf:
41*5def4c47SEmmanuel Vadot  - if:
42*5def4c47SEmmanuel Vadot      properties:
43*5def4c47SEmmanuel Vadot        compatible:
44*5def4c47SEmmanuel Vadot          contains:
45*5def4c47SEmmanuel Vadot            const: microchip,mcp4725
46*5def4c47SEmmanuel Vadot    then:
47*5def4c47SEmmanuel Vadot      properties:
48*5def4c47SEmmanuel Vadot        vref-supply: false
49*5def4c47SEmmanuel Vadot      required:
50*5def4c47SEmmanuel Vadot        - vdd-supply
51*5def4c47SEmmanuel Vadot
52*5def4c47SEmmanuel Vadot  - if:
53*5def4c47SEmmanuel Vadot      properties:
54*5def4c47SEmmanuel Vadot        compatible:
55*5def4c47SEmmanuel Vadot          contains:
56*5def4c47SEmmanuel Vadot            const: microchip,mcp4726
57*5def4c47SEmmanuel Vadot    then:
58*5def4c47SEmmanuel Vadot      anyOf:
59*5def4c47SEmmanuel Vadot        - required:
60*5def4c47SEmmanuel Vadot            - vdd-supply
61*5def4c47SEmmanuel Vadot        - required:
62*5def4c47SEmmanuel Vadot            - vref-supply
63*5def4c47SEmmanuel Vadot
64*5def4c47SEmmanuel Vadot  - if:
65*5def4c47SEmmanuel Vadot      not:
66*5def4c47SEmmanuel Vadot        required:
67*5def4c47SEmmanuel Vadot          - vref-supply
68*5def4c47SEmmanuel Vadot    then:
69*5def4c47SEmmanuel Vadot      properties:
70*5def4c47SEmmanuel Vadot        microchip,vref-buffered: false
71*5def4c47SEmmanuel Vadot
72*5def4c47SEmmanuel Vadotrequired:
73*5def4c47SEmmanuel Vadot  - compatible
74*5def4c47SEmmanuel Vadot  - reg
75*5def4c47SEmmanuel Vadot
76*5def4c47SEmmanuel VadotadditionalProperties: false
77*5def4c47SEmmanuel Vadot
78*5def4c47SEmmanuel Vadotexamples:
79*5def4c47SEmmanuel Vadot  - |
80*5def4c47SEmmanuel Vadot    i2c {
81*5def4c47SEmmanuel Vadot        #address-cells = <1>;
82*5def4c47SEmmanuel Vadot        #size-cells = <0>;
83*5def4c47SEmmanuel Vadot
84*5def4c47SEmmanuel Vadot        mcp4725@60 {
85*5def4c47SEmmanuel Vadot            compatible = "microchip,mcp4725";
86*5def4c47SEmmanuel Vadot            reg = <0x60>;
87*5def4c47SEmmanuel Vadot            vdd-supply = <&vdac_vdd>;
88*5def4c47SEmmanuel Vadot        };
89*5def4c47SEmmanuel Vadot    };
90*5def4c47SEmmanuel Vadot...
91