aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2018-05-22 10:52:37 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-06-10 13:28:12 +0100
commita591525f43e7d17dc5f94f314d30f6e4da753d7b (patch)
tree30939fc3e3f63748c820d280aeeb010d2f1fed0e /Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt
parentinput: touchscreen: resistive-adc-touch: add generic resistive ADC touchscreen (diff)
downloadlinux-dev-a591525f43e7d17dc5f94f314d30f6e4da753d7b.tar.xz
linux-dev-a591525f43e7d17dc5f94f314d30f6e4da753d7b.zip
dt-bindings: iio: adc: at91-sama5d2_adc: add channel specific consumer info
Added defines for channel consumer device-tree binding Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt')
-rw-r--r--Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt
index 6469a4cd2a6d..4a3c1d496e1a 100644
--- a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt
+++ b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt
@@ -21,6 +21,14 @@ Optional properties:
- dmas: Phandle to dma channel for the ADC.
- dma-names: Must be "rx" when dmas property is being used.
See ../../dma/dma.txt for details.
+ - #io-channel-cells: in case consumer drivers are attached, this must be 1.
+ See <Documentation/devicetree/bindings/iio/iio-bindings.txt> for details.
+
+Properties for consumer drivers:
+ - Consumer drivers can be connected to this producer device, as specified
+ in <Documentation/devicetree/bindings/iio/iio-bindings.txt>
+ - Channels exposed are specified in:
+ <dt-bindings/iio/adc/at91-sama5d2_adc.txt>
Example:
@@ -38,4 +46,5 @@ adc: adc@fc030000 {
atmel,trigger-edge-type = <IRQ_TYPE_EDGE_BOTH>;
dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(25))>;
dma-names = "rx";
+ #io-channel-cells = <1>;
}