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/elan,elants_i2c.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Elantech I2C Touchscreen
8
9maintainers:
10  - David Heidelberg <david@ixit.cz>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  compatible:
17    enum:
18      - elan,ektf3624
19      - elan,ekth3500
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  wakeup-source:
28    type: boolean
29    description: touchscreen can be used as a wakeup source.
30
31  reset-gpios:
32    description: reset gpio the chip is connected to.
33
34  vcc33-supply:
35    description: a phandle for the regulator supplying 3.3V power.
36
37  vccio-supply:
38    description: a phandle for the regulator supplying IO power.
39
40  touchscreen-inverted-x: true
41  touchscreen-inverted-y: true
42  touchscreen-size-x: true
43  touchscreen-size-y: true
44  touchscreen-swapped-x-y: true
45
46additionalProperties: false
47
48required:
49  - compatible
50  - reg
51  - interrupts
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/irq.h>
56
57    i2c {
58        #address-cells = <1>;
59        #size-cells = <0>;
60
61        touchscreen@10 {
62            compatible = "elan,ekth3500";
63            reg = <0x10>;
64
65            interrupt-parent = <&gpio4>;
66            interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
67            wakeup-source;
68        };
69    };
70