forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: pulse: Support PWM capture with TI AM3358 eCAP module
This IIO driver adds support for PWM capture with the TI eCAP module. This driver is based on Matt Porter's eCAP driver from January 2014, which was never merged into the mainline [1]. Like Matt's code, this driver implements interrupt driven triggered buffer capture. However, the driver has been updated based on previous suggestions in the IIO mailing list. Additionally, support for prescalar control and finer polarity control has been included. Users can now configure the polarities of CAP1 and CAP2 individually, allowing for the measurement of a signal's high-time, low-time, or period. [1] https://marc.info/?l=linux-iio&m=145968010427392&w=2 Signed-off-by: Darren Schachter <dts86@cornell.edu>
- Loading branch information
1 parent
a1bab93
commit b454a14
Showing
7 changed files
with
613 additions
and
0 deletions.
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
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
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
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 @@ | ||
# | ||
# Pulse Capture Devices | ||
# | ||
# When adding new entries keep the list in alphabetical order | ||
|
||
menu "Pulse Capture Devices" | ||
|
||
config IIO_TIECAP | ||
tristate "TI ECAP Pulse Capture" | ||
depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST | ||
select IIO_BUFFER | ||
select IIO_TRIGGERED_BUFFER | ||
help | ||
If you say yes here you get support for the TI ECAP peripheral | ||
in pulse capture mode. This driver can also be built as a | ||
module. If so, the module will be called pulse_tiecap. | ||
|
||
endmenu |
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,6 @@ | ||
# | ||
# Makefile for IIO PWM Capture Device | ||
# | ||
|
||
# When adding new entries keep the list in alphabetical order | ||
obj-$(CONFIG_IIO_TIECAP) += pulse_tiecap.o |
Oops, something went wrong.