Debian Codegraph @

Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.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/imagis,ist3038c.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Imagis IST30XXC family touchscreen controller
8
9 maintainers:
10 - Markuss Broks <[email protected]>
11
12 properties:
13 $nodename:
14 pattern: "^touchscreen@[0-9a-f]+$"
15
16 compatible:
17 enum:
18 - imagis,ist3032c
19 - imagis,ist3038
20 - imagis,ist3038b
21 - imagis,ist3038c
22 - imagis,ist3038h
23
24 reg:
25 maxItems: 1
26
27 interrupts:
28 maxItems: 1
29
30 vdd-supply:
31 description: Power supply regulator for the chip
32
33 vddio-supply:
34 description: Power supply regulator for the I2C bus
35
36 linux,keycodes:
37 description: Keycodes for the touch keys
38 minItems: 2
39 maxItems: 5
40
41 touchscreen-size-x: true
42 touchscreen-size-y: true
43 touchscreen-fuzz-x: true
44 touchscreen-fuzz-y: true
45 touchscreen-inverted-x: true
46 touchscreen-inverted-y: true
47 touchscreen-swapped-x-y: true
48
49 additionalProperties: false
50
51 allOf:
52 - $ref: touchscreen.yaml#
53 - if:
54 not:
55 properties:
56 compatible:
57 contains:
58 enum:
59 - imagis,ist3032c
60 - imagis,ist3038
61 then:
62 properties:
63 linux,keycodes: false
64
65 required:
66 - compatible
67 - reg
68 - interrupts
69 - touchscreen-size-x
70 - touchscreen-size-y
71
72 examples:
73 - |
74 #include <dt-bindings/interrupt-controller/irq.h>
75 i2c {
76 #address-cells = <1>;
77 #size-cells = <0>;
78 touchscreen@50 {
79 compatible = "imagis,ist3038c";
80 reg = <0x50>;
81 interrupt-parent = <&gpio>;
82 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
83 vdd-supply = <&ldo1_reg>;
84 vddio-supply = <&ldo2_reg>;
85 touchscreen-size-x = <720>;
86 touchscreen-size-y = <1280>;
87 touchscreen-fuzz-x = <10>;
88 touchscreen-fuzz-y = <10>;
89 touchscreen-inverted-x;
90 touchscreen-inverted-y;
91 };
92 };
93 - |
94 #include <dt-bindings/input/linux-event-codes.h>
95 #include <dt-bindings/interrupt-controller/irq.h>
96 i2c {
97 #address-cells = <1>;
98 #size-cells = <0>;
99 touchscreen@50 {
100 compatible = "imagis,ist3032c";
101 reg = <0x50>;
102 interrupt-parent = <&gpio>;
103 interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
104 vdd-supply = <&ldo2>;
105 touchscreen-size-x = <480>;
106 touchscreen-size-y = <800>;
107 linux,keycodes = <KEY_APPSELECT>, <KEY_BACK>;
108 };
109 };
110
111 ...