lkml.org 
[lkml]   [2017]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 5/6] dt-bindings: iio: stm32-adc: add external interrupt trigger
Date
Document support for EXTI trigger. STM32 ADC can use external interrupt
line as trigger source for conversions.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
.../devicetree/bindings/iio/adc/st,stm32-adc.txt | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
index 5dfc88e..9e4af7f 100644
--- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
+++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
@@ -57,6 +57,10 @@ 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.
+- io-triggers: Phandle to external interrupt trigger (e.g. EXTI). Must be
+ phandle to EXTI11 on stm32f4. See ../iio-bindings.txt for details on trigger
+ consumer.
+- io-trigger-names: Must be "exti" when io-triggers property is being used.

Example:
adc: adc@40012000 {
@@ -88,3 +92,20 @@ Example:
...
other adc child nodes follow...
};
+
+Example with EXTI11 trigger:
+ trig: interrupt-trigger {
+ #io-trigger-cells = <0>;
+ compatible = "interrupt-trigger";
+ interrupts = <11 0>;
+ interrupt-parent = <&gpioa>;
+ }
+
+ adc: adc@40012000 {
+ ...
+ adc@0 {
+ ...
+ io-triggers = <&trig>;
+ io-trigger-names = "exti";
+ };
+ };
--
1.9.1
\
 
 \ /
  Last update: 2017-02-28 19:25    [W:0.931 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site