All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: stm32 trigger: Add quadrature device and counter
@ 2017-03-24 14:00 Benjamin Gaignard
  2017-03-24 14:00 ` [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device Benjamin Gaignard
  2017-03-24 14:00 ` [PATCH v2 2/2] iio: stm32 trigger: Add counter enable modes Benjamin Gaignard
  0 siblings, 2 replies; 7+ messages in thread
From: Benjamin Gaignard @ 2017-03-24 14:00 UTC (permalink / raw)
  To: linux-kernel, jic23, linux-iio, knaack.h, lars, pmeerw, vilhelm.gray
  Cc: fabrice.gasnier, linaro-kernel, benjamin.gaignard, Benjamin Gaignard

A first encoder IIO driver (104-quad-8) with a count channel already exist.
STM32 driver have the same type of feature but with different counting modes.
Some parts, like counting direction (up/down) could be generalized so move the
corresponding documentation from driver file to sysfs-bus-iio.

version 2:
- since iio: Generalize counting direction modes commit of version has being
  pushed in iio.git testing branch I have remove it from this serie.
- split the original attribute in 2: one for quadrature modes and one for
  enable modes.
- add scale info
- change modes to more generic names to be able to merge them with 104-quad-8
  in the futur.

Benjamin Gaignard (2):
  iio: stm32 trigger: Add quadrature encoder device
  iio: stm32 trigger: Add counter enable modes

 .../ABI/testing/sysfs-bus-iio-timer-stm32          |  55 ++++
 drivers/iio/trigger/stm32-timer-trigger.c          | 314 ++++++++++++++++++++-
 include/linux/mfd/stm32-timers.h                   |   2 +
 3 files changed, 365 insertions(+), 6 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-25 23:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-24 14:00 [PATCH v2 0/2] iio: stm32 trigger: Add quadrature device and counter Benjamin Gaignard
2017-03-24 14:00 ` [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device Benjamin Gaignard
2017-03-25 18:26   ` Jonathan Cameron
2017-03-25 23:12     ` Michael Welling
2017-03-25 23:23     ` Michael Welling
2017-03-24 14:00 ` [PATCH v2 2/2] iio: stm32 trigger: Add counter enable modes Benjamin Gaignard
2017-03-25 18:29   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.