Debian Codegraph @

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

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/sitronix,st1232.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Sitronix st1232 or st1633 touchscreen controller
8
9 maintainers:
10 - Bastian Hecht <[email protected]>
11
12 allOf:
13 - $ref: touchscreen.yaml#
14
15 properties:
16 compatible:
17 oneOf:
18 - enum:
19 - sitronix,st1232
20 - sitronix,st1633
21 - items:
22 - const: sitronix,st1624
23 - const: sitronix,st1633
24
25 reg:
26 maxItems: 1
27
28 interrupts:
29 maxItems: 1
30
31 gpios:
32 description: A phandle to the reset GPIO
33 maxItems: 1
34
35 required:
36 - compatible
37 - reg
38 - interrupts
39
40 unevaluatedProperties: false
41
42 examples:
43 - |
44 #include <dt-bindings/input/linux-event-codes.h>
45 i2c {
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 touchscreen@55 {
50 compatible = "sitronix,st1232";
51 reg = <0x55>;
52 interrupts = <2 0>;
53 gpios = <&gpio1 166 0>;
54
55 touch-overlay {
56 segment-0 {
57 label = "Touchscreen";
58 x-origin = <0>;
59 x-size = <240>;
60 y-origin = <40>;
61 y-size = <280>;
62 };
63
64 segment-1a {
65 label = "Camera light";
66 linux,code = <KEY_LIGHTS_TOGGLE>;
67 x-origin = <40>;
68 x-size = <40>;
69 y-origin = <0>;
70 y-size = <40>;
71 };
72
73 segment-2a {
74 label = "Power";
75 linux,code = <KEY_POWER>;
76 x-origin = <160>;
77 x-size = <40>;
78 y-origin = <0>;
79 y-size = <40>;
80 };
81 };
82 };
83 };