-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: adc: stm32: add trigger polarity extended attribute
Define extended attribute so that user may choose rising, falling or both edges for external trigger sources. Default to rising edge in case it isn't set. Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
- Loading branch information
Fabrice Gasnier
authored and
Jonathan Cameron
committed
Jan 28, 2017
1 parent
f24a33b
commit 732f2dc
Showing
2 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
What: /sys/bus/iio/devices/triggerX/trigger_polarity | ||
KernelVersion: 4.11 | ||
Contact: fabrice.gasnier@st.com | ||
Description: | ||
The STM32 ADC can be configured to use external trigger sources | ||
(e.g. timers, pwm or exti gpio). Then, it can be tuned to start | ||
conversions on external trigger by either: | ||
- "rising-edge" | ||
- "falling-edge" | ||
- "both-edges". | ||
Reading returns current trigger polarity. | ||
Writing value before enabling conversions sets trigger polarity. | ||
|
||
What: /sys/bus/iio/devices/triggerX/trigger_polarity_available | ||
KernelVersion: 4.11 | ||
Contact: fabrice.gasnier@st.com | ||
Description: | ||
List all available trigger_polarity settings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters