GNU Linux-libre 6.8.9-gnu
[releases.git] / Documentation / devicetree / bindings / input / elan,ekth6915.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/elan,ekth6915.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Elan eKTH6915 touchscreen controller
8
9 maintainers:
10   - Douglas Anderson <dianders@chromium.org>
11
12 description:
13   Supports the Elan eKTH6915 touchscreen controller.
14   This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
15
16 allOf:
17   - $ref: /schemas/input/touchscreen/touchscreen.yaml#
18
19 properties:
20   compatible:
21     enum:
22       - elan,ekth6915
23       - ilitek,ili2901
24
25   reg:
26     const: 0x10
27
28   interrupts:
29     maxItems: 1
30
31   panel: true
32
33   reset-gpios:
34     description: Reset GPIO; not all touchscreens using eKTH6915 hook this up.
35
36   vcc33-supply:
37     description: The 3.3V supply to the touchscreen.
38
39   vccio-supply:
40     description:
41       The IO supply to the touchscreen. Need not be specified if this is the
42       same as the 3.3V supply.
43
44 required:
45   - compatible
46   - reg
47   - interrupts
48   - vcc33-supply
49
50 additionalProperties: false
51
52 examples:
53   - |
54     #include <dt-bindings/gpio/gpio.h>
55     #include <dt-bindings/interrupt-controller/irq.h>
56
57     i2c {
58       #address-cells = <1>;
59       #size-cells = <0>;
60
61       ap_ts: touchscreen@10 {
62         compatible = "elan,ekth6915";
63         reg = <0x10>;
64
65         interrupt-parent = <&tlmm>;
66         interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
67
68         reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
69         vcc33-supply = <&pp3300_ts>;
70       };
71     };