1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/input/elan,ekth3000.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: Elantech I2C Touchpad 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Dmitry Torokhov <dmitry.torokhov@gmail.com> 118cc087a1SEmmanuel Vadot 128cc087a1SEmmanuel VadotallOf: 138cc087a1SEmmanuel Vadot - $ref: touchscreen/touchscreen.yaml# 148cc087a1SEmmanuel Vadot 158cc087a1SEmmanuel Vadotproperties: 168cc087a1SEmmanuel Vadot compatible: 178cc087a1SEmmanuel Vadot const: elan,ekth3000 188cc087a1SEmmanuel Vadot 198cc087a1SEmmanuel Vadot reg: 208cc087a1SEmmanuel Vadot maxItems: 1 218cc087a1SEmmanuel Vadot 228cc087a1SEmmanuel Vadot interrupts: 238cc087a1SEmmanuel Vadot maxItems: 1 248cc087a1SEmmanuel Vadot 258cc087a1SEmmanuel Vadot wakeup-source: 268cc087a1SEmmanuel Vadot type: boolean 278cc087a1SEmmanuel Vadot description: touchpad can be used as a wakeup source 288cc087a1SEmmanuel Vadot 298cc087a1SEmmanuel Vadot vcc-supply: 308cc087a1SEmmanuel Vadot description: a phandle for the regulator supplying 3.3V power 318cc087a1SEmmanuel Vadot 328cc087a1SEmmanuel Vadot elan,trackpoint: 338cc087a1SEmmanuel Vadot type: boolean 348cc087a1SEmmanuel Vadot description: touchpad can support a trackpoint 358cc087a1SEmmanuel Vadot 368cc087a1SEmmanuel Vadot elan,clickpad: 378cc087a1SEmmanuel Vadot type: boolean 388cc087a1SEmmanuel Vadot description: touchpad is a clickpad (the entire surface is a button) 398cc087a1SEmmanuel Vadot 408cc087a1SEmmanuel Vadot elan,middle-button: 418cc087a1SEmmanuel Vadot type: boolean 428cc087a1SEmmanuel Vadot description: touchpad has a physical middle button 438cc087a1SEmmanuel Vadot 448cc087a1SEmmanuel Vadot elan,x_traces: 458cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 468cc087a1SEmmanuel Vadot description: number of antennas on the x axis 478cc087a1SEmmanuel Vadot 488cc087a1SEmmanuel Vadot elan,y_traces: 498cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 508cc087a1SEmmanuel Vadot description: number of antennas on the y axis 518cc087a1SEmmanuel Vadot 528cc087a1SEmmanuel Vadot touchscreen-size-x: true 538cc087a1SEmmanuel Vadot 548cc087a1SEmmanuel Vadot touchscreen-size-y: true 558cc087a1SEmmanuel Vadot 568cc087a1SEmmanuel Vadot touchscreen-x-mm: true 578cc087a1SEmmanuel Vadot 588cc087a1SEmmanuel Vadot touchscreen-y-mm: true 598cc087a1SEmmanuel Vadot 608cc087a1SEmmanuel Vadotrequired: 618cc087a1SEmmanuel Vadot - compatible 628cc087a1SEmmanuel Vadot - reg 638cc087a1SEmmanuel Vadot - interrupts 648cc087a1SEmmanuel Vadot 658cc087a1SEmmanuel VadotadditionalProperties: false 668cc087a1SEmmanuel Vadot 678cc087a1SEmmanuel Vadotexamples: 688cc087a1SEmmanuel Vadot - | 698cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 708cc087a1SEmmanuel Vadot i2c { 718cc087a1SEmmanuel Vadot #address-cells = <1>; 728cc087a1SEmmanuel Vadot #size-cells = <0>; 738cc087a1SEmmanuel Vadot 748cc087a1SEmmanuel Vadot touchpad@15 { 758cc087a1SEmmanuel Vadot compatible = "elan,ekth3000"; 768cc087a1SEmmanuel Vadot reg = <0x15>; 778cc087a1SEmmanuel Vadot interrupt-parent = <&gpio4>; 788cc087a1SEmmanuel Vadot interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>; 798cc087a1SEmmanuel Vadot wakeup-source; 808cc087a1SEmmanuel Vadot }; 818cc087a1SEmmanuel Vadot }; 82