File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Documentation/devicetree/bindings/input/touchscreen Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ unevaluatedProperties: false
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>;
@@ -46,5 +47,33 @@ examples:
46
47
reg = <0x55>;
47
48
interrupts = <2 0>;
48
49
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
+ };
49
78
};
50
79
};
You can’t perform that action at this time.
0 commit comments