Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: input: touchscreen: st1232: add touch-overlay example

The touch-overlay feature adds support for segments (touch areas) on the
touchscreen surface that represent overlays with clipped touchscreen
areas and printed buttons.

Add nodes for a clipped touchscreen and overlay buttons to the existing
example.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net>
Link: https://lore.kernel.org/r/20241016-feature-ts_virtobj_patch-v11-3-b292a1bbb0a1@wolfvision.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Javier Carrasco and committed by
Dmitry Torokhov
88fb51ea ea4d3310

+29
+29
Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml
··· 37 37 38 38 examples: 39 39 - | 40 + #include <dt-bindings/input/linux-event-codes.h> 40 41 i2c { 41 42 #address-cells = <1>; 42 43 #size-cells = <0>; ··· 47 46 reg = <0x55>; 48 47 interrupts = <2 0>; 49 48 gpios = <&gpio1 166 0>; 49 + 50 + touch-overlay { 51 + segment-0 { 52 + label = "Touchscreen"; 53 + x-origin = <0>; 54 + x-size = <240>; 55 + y-origin = <40>; 56 + y-size = <280>; 57 + }; 58 + 59 + segment-1a { 60 + label = "Camera light"; 61 + linux,code = <KEY_LIGHTS_TOGGLE>; 62 + x-origin = <40>; 63 + x-size = <40>; 64 + y-origin = <0>; 65 + y-size = <40>; 66 + }; 67 + 68 + segment-2a { 69 + label = "Power"; 70 + linux,code = <KEY_POWER>; 71 + x-origin = <160>; 72 + x-size = <40>; 73 + y-origin = <0>; 74 + y-size = <40>; 75 + }; 76 + }; 50 77 }; 51 78 };