0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/dac/dpot-dac.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: DAC emulation using a digital potentiometer
0008
0009 maintainers:
0010 - Peter Rosin <peda@axentia.se>
0011
0012 description: |
0013 It is assumed that the dpot is used as a voltage divider between the
0014 current dpot wiper setting and the maximum resistance of the dpot. The
0015 divided voltage is provided by a vref regulator.
0016
0017 .------.
0018 .-----------. | |
0019 | vref |--' .---.
0020 | regulator |--. | |
0021 '-----------' | | d |
0022 | | p |
0023 | | o | wiper
0024 | | t |<---------+
0025 | | |
0026 | '---' dac output voltage
0027 | |
0028 '------+------------+
0029
0030 properties:
0031 compatible:
0032 const: dpot-dac
0033
0034 vref-supply:
0035 description: Regulator supplying the voltage divider.
0036
0037 io-channels:
0038 maxItems: 1
0039 description: |
0040 Channel node of the dpot to be used for the voltage division.
0041
0042 io-channel-names:
0043 const: dpot
0044
0045 "#io-channel-cells":
0046 const: 1
0047
0048 required:
0049 - compatible
0050 - vref-supply
0051 - io-channels
0052 - io-channel-names
0053
0054 additionalProperties: false
0055
0056 examples:
0057 - |
0058 dac {
0059 compatible = "dpot-dac";
0060 vref-supply = <®_3v3>;
0061 io-channels = <&dpot 0>;
0062 io-channel-names = "dpot";
0063 };
0064 ...