xref: /linux/Documentation/devicetree/bindings/input/elan,ekth6915.yaml (revision 08b7174fb8d126e607e385e34b9e1da4f3be274f)
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
7title: Elan eKTH6915 touchscreen controller
8
9maintainers:
10  - Douglas Anderson <dianders@chromium.org>
11
12description:
13  Supports the Elan eKTH6915 touchscreen controller.
14  This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
15
16allOf:
17  - $ref: /schemas/input/touchscreen/touchscreen.yaml#
18
19properties:
20  compatible:
21    items:
22      - const: elan,ekth6915
23
24  reg:
25    const: 0x10
26
27  interrupts:
28    maxItems: 1
29
30  panel: true
31
32  reset-gpios:
33    description: Reset GPIO; not all touchscreens using eKTH6915 hook this up.
34
35  vcc33-supply:
36    description: The 3.3V supply to the touchscreen.
37
38  vccio-supply:
39    description:
40      The IO supply to the touchscreen. Need not be specified if this is the
41      same as the 3.3V supply.
42
43required:
44  - compatible
45  - reg
46  - interrupts
47  - vcc33-supply
48
49additionalProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/gpio/gpio.h>
54    #include <dt-bindings/interrupt-controller/irq.h>
55
56    i2c {
57      #address-cells = <1>;
58      #size-cells = <0>;
59
60      ap_ts: touchscreen@10 {
61        compatible = "elan,ekth6915";
62        reg = <0x10>;
63
64        interrupt-parent = <&tlmm>;
65        interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
66
67        reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
68        vcc33-supply = <&pp3300_ts>;
69      };
70    };
71