Skip to content

Input: touchscreen - parse touchscreen-x-mm and touchscreen-y-mm properties

Dmitry Torokhov asahi linux-arm-kernel linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Input: touchscreen - parse touchscreen-x-mm and touchscreen-y-mmdrivers/input/tests/Makefile drivers/input/tests/touchscreen_test.c drivers/input/touchscreen.c+223 -50 replies
2/4Input: wacom_w9000 - rely on touchscreen_parse_properties() for resolutiondrivers/input/touchscreen/wacom_w9000.c+0 -100 replies
3/4Input: goodix-berlin - set default resolution before parsing propertiesdrivers/input/touchscreen/goodix_berlin_core.c+2 -21 reply
4/4Input: apple_z2 - set default resolution before parsing propertiesdrivers/input/touchscreen/apple_z2.c+1 -10 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchNeil Armstrong
1/4
2/4
3/4R-b
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Input: touchscreen - parse touchscreen-x-mm and touchscreen-y-mm properties

The common touchscreen device tree binding documents touchscreen-x-mm and touchscreen-y-mm to specify the physical dimensions of the touch surface, which userspace uses via axis resolution (units/mm) for gesture scaling and palm rejection. However, touchscreen_parse_properties() has not been parsing these properties.

This series teaches touchscreen_parse_properties() to read touchscreen-x-mm and touchscreen-y-mm and calculate the corresponding X and Y axis resolutions from the configured axis ranges, accompanied by KUnit tests.

It also updates wacom_w9000 to drop its manual parsing of these properties, and adjusts goodix-berlin and apple_z2 to set their fallback resolutions before calling touchscreen_parse_properties() so firmware- provided dimensions can override the defaults instead of being clobbered.

Dmitry Torokhov (4):
Input: touchscreen - parse touchscreen-x-mm and touchscreen-y-mm
Input: wacom_w9000 - rely on touchscreen_parse_properties() for
resolution
Input: goodix-berlin - set default resolution before parsing
properties
Input: apple_z2 - set default resolution before parsing properties

 drivers/input/tests/Makefile                  |   1 +
 drivers/input/tests/touchscreen_test.c        | 209 ++++++++++++++++++
 drivers/input/touchscreen.c                   |  18 +-
 drivers/input/touchscreen/apple_z2.c          |   2 +-
 .../input/touchscreen/goodix_berlin_core.c    |   4 +-
 drivers/input/touchscreen/wacom_w9000.c       |  10 -
 6 files changed, 226 insertions(+), 18 deletions(-)
 create mode 100644 drivers/input/tests/touchscreen_test.c
Signature · 1 line
2.56.0.385.gac671c819a-goog