59 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---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 controller8 9maintainers:10 - Siebren Vroegindeweij <siebren.vroegindeweij@hotmail.com>11 12allOf:13 - $ref: touchscreen.yaml#14 15properties:16 compatible:17 enum:18 - elan,ektf212719 - elan,ektf213220 - elan,ektf223221 22 reg:23 maxItems: 124 25 interrupts:26 maxItems: 127 28 power-gpios:29 maxItems: 130 31required:32 - compatible33 - reg34 - interrupts35 - power-gpios36 37unevaluatedProperties: false38 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