Path: blob/master/Documentation/devicetree/bindings/input/elan,ekth3000.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/elan,ekth3000.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Elantech I2C Touchpad78maintainers:9- Dmitry Torokhov <dmitry.torokhov@gmail.com>1011allOf:12- $ref: touchscreen/touchscreen.yaml#1314properties:15compatible:16const: elan,ekth30001718reg:19maxItems: 12021interrupts:22maxItems: 12324wakeup-source:25type: boolean26description: touchpad can be used as a wakeup source2728vcc-supply:29description: a phandle for the regulator supplying 3.3V power3031elan,trackpoint:32type: boolean33description: touchpad can support a trackpoint3435elan,clickpad:36type: boolean37description: touchpad is a clickpad (the entire surface is a button)3839elan,middle-button:40type: boolean41description: touchpad has a physical middle button4243elan,x_traces:44$ref: /schemas/types.yaml#/definitions/uint3245description: number of antennas on the x axis4647elan,y_traces:48$ref: /schemas/types.yaml#/definitions/uint3249description: number of antennas on the y axis5051touchscreen-size-x: true5253touchscreen-size-y: true5455touchscreen-x-mm: true5657touchscreen-y-mm: true5859required:60- compatible61- reg62- interrupts6364additionalProperties: false6566examples:67- |68#include <dt-bindings/interrupt-controller/irq.h>69i2c {70#address-cells = <1>;71#size-cells = <0>;7273touchpad@15 {74compatible = "elan,ekth3000";75reg = <0x15>;76interrupt-parent = <&gpio4>;77interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;78wakeup-source;79};80};818283