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 21 reg: 22 maxItems: 1 23 24 interrupts: 25 maxItems: 1 26 27 power-gpios: 28 maxItems: 1 29 30required: 31 - compatible 32 - reg 33 - interrupts 34 - power-gpios 35 36unevaluatedProperties: false 37 38examples: 39 - | 40 #include <dt-bindings/gpio/gpio.h> 41 #include <dt-bindings/interrupt-controller/irq.h> 42 43 i2c { 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 touchscreen@15 { 48 compatible = "elan,ektf2127"; 49 reg = <0x15>; 50 interrupt-parent = <&pio>; 51 interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; 52 power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; 53 touchscreen-inverted-x; 54 touchscreen-swapped-x-y; 55 }; 56 }; 57... 58