Microchip mcp4725 and mcp4726 DAC
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/microchip,mcp4725.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomas Novotny <tomas@novotny.cz>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp4725", "microchip,mcp4726"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Provides both power and acts as the reference supply on the mcp4725. For the mcp4726 it will be used as the reference voltage if vref-supply is not provided.
vref-supply — not listed as required here #
Vref pin is used as a voltage reference when this supply is specified.
microchip,vref-buffered — not listed as required here #
Value type (type): "boolean"
Enable buffering of the external Vref pin. This boolean is not valid without the vref-supply. Quoting the datasheet: This is offered in cases where the reference voltage does not have the current capability not to drop its voltage when connected to the internal resistor ladder circuit.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,mcp4725"When the condition matches (
then) #Properties and child nodes (
properties)
vref-supply— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,mcp4726"When the condition matches (
then) #At least one of these rules must match (
anyOf)Rule 1
Rule 2
Rule 3 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
microchip,vref-buffered— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
mcp4725@60 {
compatible = "microchip,mcp4725";
reg = <0x60>;
vdd-supply = <&vdac_vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)