Path: blob/main/sys/contrib/device-tree/Bindings/iio/dac/dpot-dac.txt
48525 views
Bindings for DAC emulation using a digital potentiometer12It is assumed that the dpot is used as a voltage divider between the3current dpot wiper setting and the maximum resistance of the dpot. The4divided voltage is provided by a vref regulator.56.------.7.-----------. | |8| vref |--' .---.9| regulator |--. | |10'-----------' | | d |11| | p |12| | o | wiper13| | t |<---------+14| | |15| '---' dac output voltage16| |17'------+------------+1819Required properties:20- compatible: Should be "dpot-dac"21- vref-supply: The regulator supplying the voltage divider.22- io-channels: Channel node of the dpot to be used for the voltage division.23- io-channel-names: Should be "dpot".2425Example:2627&i2c {28dpot: mcp4651-503@28 {29compatible = "microchip,mcp4651-503";30reg = <0x28>;31#io-channel-cells = <1>;32};33};3435dac {36compatible = "dpot-dac";37vref-supply = <®_3v3>;38io-channels = <&dpot 0>;39io-channel-names = "dpot";40};414243