Skip to content

Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

Nick Dyer linux-input linux-media lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 6 repliesIn review
  2. v28 patches 8 repliesSuperseded
  3. v18 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Address V4L2 review comments from Hans Verkuil
- Run v4l-compliance and fix all issues - needs minor patch here:
https://github.com/ndyer/v4l-utils/commit/cf50469773f

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Input: atmel_mxt_ts - add support for T37 diagnostic datadrivers/input/touchscreen/atmel_mxt_ts.c+152 -01 reply
2/8Add signed 16-bit pixel formatDocumentation/DocBook/media/v4l/pixfmt-ys16.xml Documentation/DocBook/media/v4l/pixfmt.xml drivers/media/v4l2-core/v4l2-ioctl.c +1 more+82 -00 replies
3/8v4l2-core: Add VFL_TYPE_TOUCH_SENSORdrivers/input/touchscreen/sur40.c drivers/media/v4l2-core/v4l2-dev.c drivers/media/v4l2-core/v4l2-ioctl.c +2 more+24 -100 replies
4/8Input: atmel_mxt_ts - output diagnostic debug via v4l2 devicedrivers/input/touchscreen/Kconfig drivers/input/touchscreen/atmel_mxt_ts.c+249 -01 reply
5/8Input: atmel_mxt_ts - read touchscreen sizedrivers/input/touchscreen/atmel_mxt_ts.c+37 -60 replies
6/8Input: atmel_mxt_ts - handle diagnostic data orientationdrivers/input/touchscreen/atmel_mxt_ts.c+21 -50 replies
7/8Input: atmel_mxt_ts - add diagnostic data support for mXT1386drivers/input/touchscreen/atmel_mxt_ts.c+26 -31 reply
8/8Input: atmel_mxt_ts - add support for reference datadrivers/input/touchscreen/atmel_mxt_ts.c+51 -70 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

This is a series of patches to add diagnostic data support to the Atmel maXTouch driver. It's a rewrite of the previous implementation which output via
debugfs: it now uses a V4L2 device in a similar way to the sur40 driver.

There are significant performance advantages to putting this code into the driver. The algorithm for retrieving the data has been fairly consistent across a range of chips, with the exception of the mXT1386 series (see patch).

We have a utility which can read the data and display it in a useful format:
https://github.com/ndyer/heatmap/commits/heatmap-v4l

These patches are also available from
https://github.com/ndyer/linux/commits/diagnostic-v4l

Changes in v3:
- Address V4L2 review comments from Hans Verkuil
- Run v4l-compliance and fix all issues - needs minor patch here:
https://github.com/ndyer/v4l-utils/commit/cf50469773f

Changes in v2:
- Split pixfmt changes into separate commit and add DocBook
- Introduce VFL_TYPE_TOUCH_SENSOR and /dev/v4l-touch
- Remove "single node" support for now, it may be better to treat it as metadata later
- Explicitly set VFL_DIR_RX
- Fix Kconfig