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 maxItems: 1 33 description: reset gpio the chip is connected to. 34 35 vcc33-supply: 36 description: a phandle for the regulator supplying 3.3V power. 37 38 vccio-supply: 39 description: a phandle for the regulator supplying IO power. 40 41 touchscreen-inverted-x: true 42 touchscreen-inverted-y: true 43 touchscreen-size-x: true 44 touchscreen-size-y: true 45 touchscreen-swapped-x-y: true 46 47additionalProperties: false 48 49required: 50 - compatible 51 - reg 52 - interrupts 53 54examples: 55 - | 56 #include <dt-bindings/interrupt-controller/irq.h> 57 58 i2c { 59 #address-cells = <1>; 60 #size-cells = <0>; 61 62 touchscreen@10 { 63 compatible = "elan,ekth3500"; 64 reg = <0x10>; 65 66 interrupt-parent = <&gpio4>; 67 interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>; 68 wakeup-source; 69 }; 70 }; 71