Skip to content

counter: ti-eqep: implement features for speed measurement

David Lechner linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 32 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8counter/ti-eqep: implement over/underflow eventsdrivers/counter/ti-eqep.c+117 -24 replies
2/8counter/ti-eqep: add support for directiondrivers/counter/ti-eqep.c include/uapi/linux/counter.h+35 -02 replies
3/8counter/ti-eqep: add support for unit timerdrivers/counter/ti-eqep.c include/uapi/linux/counter.h+133 -16 replies
4/8docs: counter: add unit timer sysfs attributesDocumentation/ABI/testing/sysfs-bus-counter drivers/counter/ti-eqep.c+25 -17 replies
5/8counter/ti-eqep: add support for latched positiondrivers/counter/ti-eqep.c+50 -03 replies
6/8docs: counter: add latch_mode and latched_count sysfs attributesDocumentation/ABI/testing/sysfs-bus-counter+30 -96 replies
7/8counter/ti-eqep: add support for edge capture unitdrivers/counter/ti-eqep.c+150 -03 replies
8/8docs: counter: add edge_capture_unit_* attributesDocumentation/ABI/testing/sysfs-bus-counter+37 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] counter: ti-eqep: implement features for speed measurement

Now that the counter subsystem has a new chrdev for events, we can use this to add new features to the TI eQEP driver to be able to do accurate speed measurement.

This adds two new device-level components, a Unit Timer and an Edge Capture Unit. I don't have much knowledge about other available counter hardware, so I don't know if it makes sense to try to make these more generic, e.g. counterX/timerY/* and counterX/captureY/*. For now, they are just flat (counterX/unit_timer_* and counterX/edge_capture_unit_*) and assume there is only one instance per counter device.

This has been tested on a BeagleBone Blue with LEGO MINDSTORMS motors.

David Lechner (8):
counter/ti-eqep: implement over/underflow events counter/ti-eqep: add support for direction counter/ti-eqep: add support for unit timer
docs: counter: add unit timer sysfs attributes counter/ti-eqep: add support for latched position
docs: counter: add latch_mode and latched_count sysfs attributes counter/ti-eqep: add support for edge capture unit
docs: counter: add edge_capture_unit_* attributes

 Documentation/ABI/testing/sysfs-bus-counter | 100 +++-
 drivers/counter/ti-eqep.c                   | 482 +++++++++++++++++++-
 include/uapi/linux/counter.h                |   4 +
 3 files changed, 575 insertions(+), 11 deletions(-)
Signature · 1 line
2.25.1