Texas Instruments DAC082s085 and similar DACs

Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/ti,dac082s085.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

A family of Texas Instruments 8/10/12-bit 2/4-channel DACs

Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,dac082s085", "ti,dac102s085", "ti,dac122s085", "ti,dac084s085", "ti,dac104s085", "ti,dac124s085"

reg — required here #

Maximum number of items (maxItems): 1

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

spi-cpol — not listed as required here #

Must be either spi-cpha, or spi-cpol but not both.

vref-supply — required here #

Needed to provide output scaling.

Required in this object (required): "compatible", "reg", "vref-supply"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "spi-cpha"

Rule 2 #

Required in this object (required): "spi-cpol"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

vref_2v5_reg: regulator-vref {
    compatible = "regulator-fixed";
    regulator-name = "2v5";
    regulator-min-microvolt = <2500000>;
    regulator-max-microvolt = <2500000>;
    regulator-always-on;
};
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    dac@0 {
        compatible = "ti,dac082s085";
        reg = <0>;
        spi-max-frequency = <40000000>;
        spi-cpol;
        vref-supply = <&vref_2v5_reg>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page