DAC emulation using a digital potentiometer
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/dpot-dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"
It is assumed that the dpot is used as a voltage divider between the current dpot wiper setting and the maximum resistance of the dpot. The divided voltage is provided by a vref regulator.
.------.
.-----------. | |
| vref |--' .---.
| regulator |--. | |
'-----------' | | d |
| | p |
| | o | wiper
| | t |<---------+
| | |
| '---' dac output voltage
| |
'------+------------+
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "dpot-dac"
vref-supply — required here #
Regulator supplying the voltage divider.
io-channels — required here #
Maximum number of items (maxItems): 1
Channel node of the dpot to be used for the voltage division.
io-channel-names — required here #
Exact value (const): "dpot"
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "vref-supply", "io-channels", "io-channel-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dac {
compatible = "dpot-dac";
vref-supply = <®_3v3>;
io-channels = <&dpot 0>;
io-channel-names = "dpot";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)