summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/iio/dac
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-06-11 18:56:00 +0200
committerJonathan Cameron <jic23@kernel.org>2013-06-11 21:25:58 +0200
commitf83478240e742efe1103110c28d48cc2b4dcee5c (patch)
tree0a44961fa6e7c54e2d08610a2137d2d04e0ba21d /Documentation/devicetree/bindings/iio/dac
parentiio: frequency: adf4350: Add support for dt bindings (diff)
downloadlinux-f83478240e742efe1103110c28d48cc2b4dcee5c.tar.xz
linux-f83478240e742efe1103110c28d48cc2b4dcee5c.zip
iio:dac: Add support for the AD7303
This patch adds support for the AD7303. The AD7303 is a simple 2 channel 8 bit DAC with an SPI interface. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/dac')
-rw-r--r--Documentation/devicetree/bindings/iio/dac/ad7303.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/dac/ad7303.txt b/Documentation/devicetree/bindings/iio/dac/ad7303.txt
new file mode 100644
index 000000000000..914610f0556e
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/dac/ad7303.txt
@@ -0,0 +1,23 @@
+Analog Devices AD7303 DAC device driver
+
+Required properties:
+ - compatible: Must be "adi,ad7303"
+ - reg: SPI chip select number for the device
+ - spi-max-frequency: Max SPI frequency to use (< 30000000)
+ - Vdd-supply: Phandle to the Vdd power supply
+
+Optional properties:
+ - REF-supply: Phandle to the external reference voltage supply. This should
+ only be set if there is an external reference voltage connected to the REF
+ pin. If the property is not set Vdd/2 is used as the reference voltage.
+
+Example:
+
+ ad7303@4 {
+ compatible = "adi,ad7303";
+ reg = <4>;
+ spi-max-frequency = <10000000>;
+ Vdd-supply = <&vdd_supply>;
+ adi,use-external-reference;
+ REF-supply = <&vref_supply>;
+ };