Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1569770 > unrolled thread
| Started by | Fabrice Gasnier <fabrice.gasnier@st.com> |
|---|---|
| First post | 2017-01-30 15:20 +0100 |
| Last post | 2017-01-30 15:20 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/5] Documentation: dt: iio: document stm32 adc trigger polarity Fabrice Gasnier <fabrice.gasnier@st.com> - 2017-01-30 15:20 +0100
| From | Fabrice Gasnier <fabrice.gasnier@st.com> |
|---|---|
| Date | 2017-01-30 15:20 +0100 |
| Subject | [PATCH 1/5] Documentation: dt: iio: document stm32 adc trigger polarity |
| Message-ID | <t5kYi-4Zy-25@gated-at.bofh.it> |
STM32 ADC trigger polarity can be set to either rising, falling
or both edges. Allow to configure it from dt.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 3 +++
1 file changed, 3 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..6c6d968 100644
--- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
+++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
@@ -57,6 +57,8 @@ 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.
+- st,trigger-polarity: Must be 0 (default), 1 or 2 to set default trigger
+ polarity to respectively "rising-edge", "falling-edge" or "both-edges".
Example:
adc: adc@40012000 {
@@ -84,6 +86,7 @@ Example:
st,adc-channels = <8>;
dmas = <&dma2 0 0 0x400 0x0>;
dma-names = "rx";
+ st,trigger-polarity = <1>;
};
...
other adc child nodes follow...
--
1.9.1
Back to top | Article view | linux.kernel
csiph-web