Skip to content

Add IIO support for counter devices

William Breathitt Gray linux-iio lkml 5 versions – Applied

Status from this message: Applied

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 2 repliesApplied
  2. v42 patches 6 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches1 replySuperseded
v12 patches3 repliesSuperseded

Changes in v5 from the cover letter

- Refactored scale to handle values of 1, 0.5, and 0.25, in order to be consistent with the multiplication usage of the other interfaces
- Reimplemented preset as an ext_info since the preset functionality is rather device specific
- Reimplemented ab_enable ext_info as IIO_CHAN_INFO_ENABLE; this should make the counter enable/disable interface more intuitive
- Renamed "preset_enable" attribute to "set_to_preset_on_index" (and refactored as a boolean) to make the functionality clearer
- Updated documentation to account for the changes in this patchset

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2iio: Implement counter channel type and info constantsDocumentation/ABI/testing/sysfs-bus-iio drivers/iio/industrialio-core.c include/uapi/linux/iio/types.h+22 -01 reply
2/2iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 MAINTAINERS drivers/iio/Kconfig +4 more+757 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/2] Add IIO support for counter devices

Changes in v5:
- Refactored scale to handle values of 1, 0.5, and 0.25, in order to be consistent with the multiplication usage of the other interfaces
- Reimplemented preset as an ext_info since the preset functionality is rather device specific
- Reimplemented ab_enable ext_info as IIO_CHAN_INFO_ENABLE; this should make the counter enable/disable interface more intuitive
- Renamed "preset_enable" attribute to "set_to_preset_on_index" (and refactored as a boolean) to make the functionality clearer
- Updated documentation to account for the changes in this patchset

This patchset adds new IIO channel type constants to facilitate support for counter devices. In addition, a new "counter" subdirectory is created to house drivers for these counter devices.

Quadrature encoders, such as rotary encoders and linear encoders, are devices which are capable of encoding the relative position and direction of motion of a shaft. This patchset introduces several IIO constants for supporting quadrature encoder counter devices.

IIO_COUNT: Current count (main data provided by the counter device)
IIO_INDEX: Counter device index value

Specifically, this patchset introduces a driver to support the ACCES 104-QUAD-8 device, a general purpose quadrature encoder counter/interface board capable of monitoring the outputs of eight encoders.

William Breathitt Gray (2):
iio: Implement counter channel type and info constants
iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8

 Documentation/ABI/testing/sysfs-bus-iio            |  18 +
 .../ABI/testing/sysfs-bus-iio-counter-104-quad-8   | 125 +++++
 MAINTAINERS                                        |   6 +
 drivers/iio/Kconfig                                |   1 +
 drivers/iio/Makefile                               |   1 +
 drivers/iio/counter/104-quad-8.c                   | 593 +++++++++++++++++++++
 drivers/iio/counter/Kconfig                        |  24 +
 drivers/iio/counter/Makefile                       |   7 +
 drivers/iio/industrialio-core.c                    |   2 +
 include/uapi/linux/iio/types.h                     |   2 +
 10 files changed, 779 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8
 create mode 100644 drivers/iio/counter/104-quad-8.c
 create mode 100644 drivers/iio/counter/Kconfig
 create mode 100644 drivers/iio/counter/Makefile
Signature · 1 line
2.7.3