Path: blob/master/Documentation/devicetree/bindings/iio/dac/microchip,mcp4725.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/dac/microchip,mcp4725.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Microchip mcp4725 and mcp4726 DAC78maintainers:9- Tomas Novotny <tomas@novotny.cz>1011properties:12compatible:13enum:14- microchip,mcp472515- microchip,mcp47261617reg:18maxItems: 11920vdd-supply:21description: |22Provides both power and acts as the reference supply on the mcp4725.23For the mcp4726 it will be used as the reference voltage if vref-supply24is not provided.2526vref-supply:27description:28Vref pin is used as a voltage reference when this supply is specified.2930microchip,vref-buffered:31type: boolean32description: |33Enable buffering of the external Vref pin. This boolean is not valid34without the vref-supply. Quoting the datasheet: This is offered in35cases where the reference voltage does not have the current36capability not to drop its voltage when connected to the internal37resistor ladder circuit.3839allOf:40- if:41properties:42compatible:43contains:44const: microchip,mcp472545then:46properties:47vref-supply: false48required:49- vdd-supply5051- if:52properties:53compatible:54contains:55const: microchip,mcp472656then:57anyOf:58- required:59- vdd-supply60- required:61- vref-supply6263- if:64not:65required:66- vref-supply67then:68properties:69microchip,vref-buffered: false7071required:72- compatible73- reg7475additionalProperties: false7677examples:78- |79i2c {80#address-cells = <1>;81#size-cells = <0>;8283mcp4725@60 {84compatible = "microchip,mcp4725";85reg = <0x60>;86vdd-supply = <&vdac_vdd>;87};88};89...909192