xref: /linux/Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.yaml (revision dfb60401314413a71e731984906c5688369e0496)
1*dfb60401SAndreas Kemnade# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*dfb60401SAndreas Kemnade%YAML 1.2
3*dfb60401SAndreas Kemnade---
4*dfb60401SAndreas Kemnade$id: http://devicetree.org/schemas/input/touchscreen/elan,ektf2127.yaml#
5*dfb60401SAndreas Kemnade$schema: http://devicetree.org/meta-schemas/core.yaml#
6*dfb60401SAndreas Kemnade
7*dfb60401SAndreas Kemnadetitle: Elan eKTF2127 I2C touchscreen controller
8*dfb60401SAndreas Kemnade
9*dfb60401SAndreas Kemnademaintainers:
10*dfb60401SAndreas Kemnade  - Siebren Vroegindeweij <siebren.vroegindeweij@hotmail.com>
11*dfb60401SAndreas Kemnade
12*dfb60401SAndreas KemnadeallOf:
13*dfb60401SAndreas Kemnade  - $ref: touchscreen.yaml#
14*dfb60401SAndreas Kemnade
15*dfb60401SAndreas Kemnadeproperties:
16*dfb60401SAndreas Kemnade  compatible:
17*dfb60401SAndreas Kemnade    enum:
18*dfb60401SAndreas Kemnade      - elan,ektf2127
19*dfb60401SAndreas Kemnade      - elan,ektf2132
20*dfb60401SAndreas Kemnade
21*dfb60401SAndreas Kemnade  reg:
22*dfb60401SAndreas Kemnade    maxItems: 1
23*dfb60401SAndreas Kemnade
24*dfb60401SAndreas Kemnade  interrupts:
25*dfb60401SAndreas Kemnade    maxItems: 1
26*dfb60401SAndreas Kemnade
27*dfb60401SAndreas Kemnade  power-gpios:
28*dfb60401SAndreas Kemnade    maxItems: 1
29*dfb60401SAndreas Kemnade
30*dfb60401SAndreas Kemnaderequired:
31*dfb60401SAndreas Kemnade  - compatible
32*dfb60401SAndreas Kemnade  - reg
33*dfb60401SAndreas Kemnade  - interrupts
34*dfb60401SAndreas Kemnade  - power-gpios
35*dfb60401SAndreas Kemnade
36*dfb60401SAndreas KemnadeunevaluatedProperties: false
37*dfb60401SAndreas Kemnade
38*dfb60401SAndreas Kemnadeexamples:
39*dfb60401SAndreas Kemnade  - |
40*dfb60401SAndreas Kemnade    #include <dt-bindings/gpio/gpio.h>
41*dfb60401SAndreas Kemnade    #include <dt-bindings/interrupt-controller/irq.h>
42*dfb60401SAndreas Kemnade
43*dfb60401SAndreas Kemnade    i2c {
44*dfb60401SAndreas Kemnade        #address-cells = <1>;
45*dfb60401SAndreas Kemnade        #size-cells = <0>;
46*dfb60401SAndreas Kemnade
47*dfb60401SAndreas Kemnade        touchscreen@15 {
48*dfb60401SAndreas Kemnade            compatible = "elan,ektf2127";
49*dfb60401SAndreas Kemnade            reg = <0x15>;
50*dfb60401SAndreas Kemnade            interrupt-parent = <&pio>;
51*dfb60401SAndreas Kemnade            interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
52*dfb60401SAndreas Kemnade            power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
53*dfb60401SAndreas Kemnade            touchscreen-inverted-x;
54*dfb60401SAndreas Kemnade            touchscreen-swapped-x-y;
55*dfb60401SAndreas Kemnade        };
56*dfb60401SAndreas Kemnade    };
57*dfb60401SAndreas Kemnade...
58