diff options
author | Peter Rosin <peda@axentia.se> | 2016-11-08 12:58:55 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-11-13 11:40:28 +0000 |
commit | ed13134ba8c021d484d712a54c285da312567b39 (patch) | |
tree | 6cbe22626e1744474f45ece5d103ab76c468d2b7 /Documentation/devicetree/bindings/iio/dac | |
parent | ff6bd170c04628b19db87e03d654952f1e459fbc (diff) | |
download | blackbird-op-linux-ed13134ba8c021d484d712a54c285da312567b39.tar.gz blackbird-op-linux-ed13134ba8c021d484d712a54c285da312567b39.zip |
dt-bindings: iio: document dpot-dac bindings
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/dac')
-rw-r--r-- | Documentation/devicetree/bindings/iio/dac/dpot-dac.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt b/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt new file mode 100644 index 000000000000..fdf47a01bfef --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt @@ -0,0 +1,41 @@ +Bindings for DAC emulation using a digital potentiometer + +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 + | | + '------+------------+ + +Required properties: +- compatible: Should be "dpot-dac" +- vref-supply: The regulator supplying the voltage divider. +- io-channels: Channel node of the dpot to be used for the voltage division. +- io-channel-names: Should be "dpot". + +Example: + + &i2c { + dpot: mcp4651-503@28 { + compatible = "microchip,mcp4651-503"; + reg = <0x28>; + #io-channel-cells = <1>; + }; + }; + + dac { + compatible = "dpot-dac"; + vref-supply = <®_3v3>; + io-channels = <&dpot 0>; + io-channel-names = "dpot"; + }; |