xref: /linux/Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.yaml (revision a23e1966932464e1c5226cb9ac4ce1d5fc10ba22)
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,ektf2127.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Elan eKTF2127 I2C touchscreen controller
8
9maintainers:
10  - Siebren Vroegindeweij <siebren.vroegindeweij@hotmail.com>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  compatible:
17    enum:
18      - elan,ektf2127
19      - elan,ektf2132
20      - elan,ektf2232
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28  power-gpios:
29    maxItems: 1
30
31required:
32  - compatible
33  - reg
34  - interrupts
35  - power-gpios
36
37unevaluatedProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/gpio/gpio.h>
42    #include <dt-bindings/interrupt-controller/irq.h>
43
44    i2c {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        touchscreen@15 {
49            compatible = "elan,ektf2127";
50            reg = <0x15>;
51            interrupt-parent = <&pio>;
52            interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
53            power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
54            touchscreen-inverted-x;
55            touchscreen-swapped-x-y;
56        };
57    };
58...
59