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 7 title: Elantech I2C Touchscreen 8 9 maintainers: 10 - David Heidelberg <david@ixit.cz> 11 12 allOf: 13 - $ref: touchscreen.yaml# 14 15 properties: 16 compatible: 17 oneOf: 18 - enum: 19 - elan,ektf3624 20 - elan,ekth3500 21 - items: 22 - const: elan,ekth3915 23 - const: elan,ekth3500 24 25 reg: 26 maxItems: 1 27 28 interrupts: 29 maxItems: 1 30 31 wakeup-source: 32 type: boolean 33 description: touchscreen can be used as a wakeup source. 34 35 reset-gpios: 36 maxItems: 1 37 description: reset gpio the chip is connected to. 38 39 vcc33-supply: 40 description: a phandle for the regulator supplying 3.3V power. 41 42 vccio-supply: 43 description: a phandle for the regulator supplying IO power. 44 45 touchscreen-inverted-x: true 46 touchscreen-inverted-y: true 47 touchscreen-size-x: true 48 touchscreen-size-y: true 49 touchscreen-swapped-x-y: true 50 51 additionalProperties: false 52 53 required: 54 - compatible 55 - reg 56 - interrupts 57 58 examples: 59 - | 60 #include <dt-bindings/interrupt-controller/irq.h> 61 62 i2c { 63 #address-cells = <1>; 64 #size-cells = <0>; 65 66 touchscreen@10 { 67 compatible = "elan,ekth3500"; 68 reg = <0x10>; 69 70 interrupt-parent = <&gpio4>; 71 interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>; 72 wakeup-source; 73 }; 74 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.