Path: blob/master/Documentation/devicetree/bindings/iio/dac/dpot-dac.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/dpot-dac.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: DAC emulation using a digital potentiometer78maintainers:9- Peter Rosin <peda@axentia.se>1011description: |12It is assumed that the dpot is used as a voltage divider between the13current dpot wiper setting and the maximum resistance of the dpot. The14divided voltage is provided by a vref regulator.1516.------.17.-----------. | |18| vref |--' .---.19| regulator |--. | |20'-----------' | | d |21| | p |22| | o | wiper23| | t |<---------+24| | |25| '---' dac output voltage26| |27'------+------------+2829properties:30compatible:31const: dpot-dac3233vref-supply:34description: Regulator supplying the voltage divider.3536io-channels:37maxItems: 138description: |39Channel node of the dpot to be used for the voltage division.4041io-channel-names:42const: dpot4344"#io-channel-cells":45const: 14647required:48- compatible49- vref-supply50- io-channels51- io-channel-names5253additionalProperties: false5455examples:56- |57dac {58compatible = "dpot-dac";59vref-supply = <®_3v3>;60io-channels = <&dpot 0>;61io-channel-names = "dpot";62};63...646566