Skip to content

IIO pulse capture support for TI ECAP

Matt Porter linux-arm-kernel linux-devicetree linux-iio linux-omap linux-pwm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 11 repliesIn review
  2. v26 patches 2 repliesSuperseded
  3. v15 patches 1 replySuperseded

Changes in v3 from the cover letter

- Remove various unneeded field initialization
- Call iio_triggered_buffer_cleanup() on remove

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6iio: add support for pulse width capture devicesdrivers/iio/industrialio-core.c include/linux/iio/types.h+2 -00 replies
2/6iio: pulse: add TI ECAP driverdrivers/iio/pulse/Kconfig drivers/iio/pulse/Makefile drivers/iio/pulse/tiecap.c+517 -05 replies
3/6iio: enable selection and build of pulse driversdrivers/iio/Kconfig drivers/iio/Makefile+2 -01 reply
4/6iio: Add ABI docs for pulse capture devicesDocumentation/ABI/testing/sysfs-bus-iio Documentation/ABI/testing/sysfs-bus-iio-pulse-tiecap+27 -01 reply
5/6pwm: enable TI PWMSS if the IIO tiecap driver is selecteddrivers/pwm/Kconfig+1 -11 reply
6/6ARM: dts: AM33XX: Add ecap interrupt propertiesarch/arm/boot/dts/am33xx.dtsi+6 -01 reply

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchMatt Ranostay
1/6
2/6T-b T-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] IIO pulse capture support for TI ECAP

Changes since v2:
- Remove various unneeded field initialization
- Call iio_triggered_buffer_cleanup() on remove

Changes since v1:
- Rebased to 3.14-rc1
- Renamed in_pulse_polarity to pulse_polarity
- Added ABI entries for pulse devices and TI ECAP

This series adds support for PWM capture devices within IIO and adds a TI ECAP IIO driver.

PWM capture devices are supported using a new IIO "pulse" channel type.

The IIO ECAP driver implements interrupt driven triggered buffer capture only as raw sample reads are not applicable to this hardware. Initially, the driver supports a single pulse width measurement with configurable polarity. The ECAP hardware can support measurement of a complete period and duty cycle but this is not yet implemented.

Matt Porter (6):
iio: add support for pulse width capture devices
iio: pulse: add TI ECAP driver
iio: enable selection and build of pulse drivers
iio: Add ABI docs for pulse capture devices
pwm: enable TI PWMSS if the IIO tiecap driver is selected
ARM: dts: AM33XX: Add ecap interrupt properties

 Documentation/ABI/testing/sysfs-bus-iio            |  18 +
 .../ABI/testing/sysfs-bus-iio-pulse-tiecap         |   9 +
 arch/arm/boot/dts/am33xx.dtsi                      |   6 +
 drivers/iio/Kconfig                                |   1 +
 drivers/iio/Makefile                               |   1 +
 drivers/iio/industrialio-core.c                    |   1 +
 drivers/iio/pulse/Kconfig                          |  20 +
 drivers/iio/pulse/Makefile                         |   6 +
 drivers/iio/pulse/tiecap.c                         | 491 +++++++++++++++++++++
 drivers/pwm/Kconfig                                |   2 +-
 include/linux/iio/types.h                          |   1 +
 11 files changed, 555 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-pulse-tiecap
 create mode 100644 drivers/iio/pulse/Kconfig
 create mode 100644 drivers/iio/pulse/Makefile
 create mode 100644 drivers/iio/pulse/tiecap.c
Signature · 1 line
1.8.4