Documentation: dt: iio: stm32-adc: optional dma support
authorFabrice Gasnier <fabrice.gasnier@st.com>
Thu, 26 Jan 2017 14:28:32 +0000 (15:28 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 28 Jan 2017 18:25:20 +0000 (18:25 +0000)
STM32 ADC can use dma. Add dt documentation for optional dma support.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt

index 49ed82e89870c18017f21996249bc29622e5a41b..5dfc88ec24a49ad7a0ae3c950b0ed5adc26d7a18 100644 (file)
@@ -53,6 +53,11 @@ Required properties:
 - #io-channel-cells = <1>: See the IIO bindings section "IIO consumers" in
   Documentation/devicetree/bindings/iio/iio-bindings.txt
 
+Optional properties:
+- dmas: Phandle to dma channel for this ADC instance.
+  See ../../dma/dma.txt for details.
+- dma-names: Must be "rx" when dmas property is being used.
+
 Example:
        adc: adc@40012000 {
                compatible = "st,stm32f4-adc-core";
@@ -77,6 +82,8 @@ Example:
                        interrupt-parent = <&adc>;
                        interrupts = <0>;
                        st,adc-channels = <8>;
+                       dmas = <&dma2 0 0 0x400 0x0>;
+                       dma-names = "rx";
                };
                ...
                other adc child nodes follow...