1*440b075bSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2af5e7abeSDavid Heidelberg%YAML 1.2 3af5e7abeSDavid Heidelberg--- 4af5e7abeSDavid Heidelberg$id: http://devicetree.org/schemas/input/elan,ekth3000.yaml# 5af5e7abeSDavid Heidelberg$schema: http://devicetree.org/meta-schemas/core.yaml# 6af5e7abeSDavid Heidelberg 7af5e7abeSDavid Heidelbergtitle: Elantech I2C Touchpad 8af5e7abeSDavid Heidelberg 9af5e7abeSDavid Heidelbergmaintainers: 10af5e7abeSDavid Heidelberg - Dmitry Torokhov <dmitry.torokhov@gmail.com> 11af5e7abeSDavid Heidelberg 12af5e7abeSDavid HeidelbergallOf: 13af5e7abeSDavid Heidelberg - $ref: touchscreen/touchscreen.yaml# 14af5e7abeSDavid Heidelberg 15af5e7abeSDavid Heidelbergproperties: 16af5e7abeSDavid Heidelberg compatible: 17af5e7abeSDavid Heidelberg const: elan,ekth3000 18af5e7abeSDavid Heidelberg 19af5e7abeSDavid Heidelberg reg: 20af5e7abeSDavid Heidelberg maxItems: 1 21af5e7abeSDavid Heidelberg 22af5e7abeSDavid Heidelberg interrupts: 23af5e7abeSDavid Heidelberg maxItems: 1 24af5e7abeSDavid Heidelberg 25af5e7abeSDavid Heidelberg wakeup-source: 26af5e7abeSDavid Heidelberg type: boolean 27af5e7abeSDavid Heidelberg description: touchpad can be used as a wakeup source 28af5e7abeSDavid Heidelberg 29af5e7abeSDavid Heidelberg vcc-supply: 30af5e7abeSDavid Heidelberg description: a phandle for the regulator supplying 3.3V power 31af5e7abeSDavid Heidelberg 32af5e7abeSDavid Heidelberg elan,trackpoint: 33af5e7abeSDavid Heidelberg type: boolean 34af5e7abeSDavid Heidelberg description: touchpad can support a trackpoint 35af5e7abeSDavid Heidelberg 36af5e7abeSDavid Heidelberg elan,clickpad: 37af5e7abeSDavid Heidelberg type: boolean 38af5e7abeSDavid Heidelberg description: touchpad is a clickpad (the entire surface is a button) 39af5e7abeSDavid Heidelberg 40af5e7abeSDavid Heidelberg elan,middle-button: 41af5e7abeSDavid Heidelberg type: boolean 42af5e7abeSDavid Heidelberg description: touchpad has a physical middle button 43af5e7abeSDavid Heidelberg 44af5e7abeSDavid Heidelberg elan,x_traces: 45af5e7abeSDavid Heidelberg $ref: /schemas/types.yaml#/definitions/uint32 46af5e7abeSDavid Heidelberg description: number of antennas on the x axis 47af5e7abeSDavid Heidelberg 48af5e7abeSDavid Heidelberg elan,y_traces: 49af5e7abeSDavid Heidelberg $ref: /schemas/types.yaml#/definitions/uint32 50af5e7abeSDavid Heidelberg description: number of antennas on the y axis 51af5e7abeSDavid Heidelberg 52af5e7abeSDavid Heidelberg touchscreen-size-x: true 53af5e7abeSDavid Heidelberg 54af5e7abeSDavid Heidelberg touchscreen-size-y: true 55af5e7abeSDavid Heidelberg 56af5e7abeSDavid Heidelberg touchscreen-x-mm: true 57af5e7abeSDavid Heidelberg 58af5e7abeSDavid Heidelberg touchscreen-y-mm: true 59af5e7abeSDavid Heidelberg 60af5e7abeSDavid Heidelbergrequired: 61af5e7abeSDavid Heidelberg - compatible 62af5e7abeSDavid Heidelberg - reg 63af5e7abeSDavid Heidelberg - interrupts 64af5e7abeSDavid Heidelberg 65af5e7abeSDavid HeidelbergadditionalProperties: false 66af5e7abeSDavid Heidelberg 67af5e7abeSDavid Heidelbergexamples: 68af5e7abeSDavid Heidelberg - | 69af5e7abeSDavid Heidelberg #include <dt-bindings/interrupt-controller/irq.h> 70af5e7abeSDavid Heidelberg i2c { 71af5e7abeSDavid Heidelberg #address-cells = <1>; 72af5e7abeSDavid Heidelberg #size-cells = <0>; 73af5e7abeSDavid Heidelberg 74af5e7abeSDavid Heidelberg touchpad@15 { 75af5e7abeSDavid Heidelberg compatible = "elan,ekth3000"; 76af5e7abeSDavid Heidelberg reg = <0x15>; 77af5e7abeSDavid Heidelberg interrupt-parent = <&gpio4>; 78af5e7abeSDavid Heidelberg interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>; 79af5e7abeSDavid Heidelberg wakeup-source; 80af5e7abeSDavid Heidelberg }; 81af5e7abeSDavid Heidelberg }; 82