dt-bindings: iio: adc: Add AD7949 device tree bindings in documentation
authorCharles-Antoine Couret <charles-antoine.couret@essensium.com>
Mon, 22 Oct 2018 21:02:43 +0000 (23:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Nov 2018 09:44:34 +0000 (09:44 +0000)
Description how to invoke ad7949 driver from device tree file.

Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@essensium.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/adc/ad7949.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt
new file mode 100644 (file)
index 0000000..c7f5057
--- /dev/null
@@ -0,0 +1,16 @@
+* Analog Devices AD7949/AD7682/AD7689
+
+Required properties:
+ - compatible: Should be one of
+       * "adi,ad7949"
+       * "adi,ad7682"
+       * "adi,ad7689"
+ - reg: spi chip select number for the device
+ - vref-supply: The regulator supply for ADC reference voltage
+
+Example:
+adc@0 {
+       compatible = "adi,ad7949";
+       reg = <0>;
+       vref-supply = <&vdd_supply>;
+};