Skip to content

Commit 88fb51e

Browse files
JC-WVdtor
authored andcommitted
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 <[email protected]> Signed-off-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/20241016-feature-ts_virtobj_patch-v11-3-b292a1bbb0a1@wolfvision.net Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent ea4d331 commit 88fb51e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ unevaluatedProperties: false
3737

3838
examples:
3939
- |
40+
#include <dt-bindings/input/linux-event-codes.h>
4041
i2c {
4142
#address-cells = <1>;
4243
#size-cells = <0>;
@@ -46,5 +47,33 @@ examples:
4647
reg = <0x55>;
4748
interrupts = <2 0>;
4849
gpios = <&gpio1 166 0>;
50+
51+
touch-overlay {
52+
segment-0 {
53+
label = "Touchscreen";
54+
x-origin = <0>;
55+
x-size = <240>;
56+
y-origin = <40>;
57+
y-size = <280>;
58+
};
59+
60+
segment-1a {
61+
label = "Camera light";
62+
linux,code = <KEY_LIGHTS_TOGGLE>;
63+
x-origin = <40>;
64+
x-size = <40>;
65+
y-origin = <0>;
66+
y-size = <40>;
67+
};
68+
69+
segment-2a {
70+
label = "Power";
71+
linux,code = <KEY_POWER>;
72+
x-origin = <160>;
73+
x-size = <40>;
74+
y-origin = <0>;
75+
y-size = <40>;
76+
};
77+
};
4978
};
5079
};

0 commit comments

Comments
 (0)