0001 # SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/input/elan,ekth3000.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Elantech I2C Touchpad
0008
0009 maintainers:
0010 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
0011
0012 allOf:
0013 - $ref: touchscreen/touchscreen.yaml#
0014
0015 properties:
0016 compatible:
0017 const: elan,ekth3000
0018
0019 reg:
0020 maxItems: 1
0021
0022 interrupts:
0023 maxItems: 1
0024
0025 wakeup-source:
0026 type: boolean
0027 description: touchpad can be used as a wakeup source
0028
0029 vcc-supply:
0030 description: a phandle for the regulator supplying 3.3V power
0031
0032 elan,trackpoint:
0033 type: boolean
0034 description: touchpad can support a trackpoint
0035
0036 elan,clickpad:
0037 type: boolean
0038 description: touchpad is a clickpad (the entire surface is a button)
0039
0040 elan,middle-button:
0041 type: boolean
0042 description: touchpad has a physical middle button
0043
0044 elan,x_traces:
0045 $ref: /schemas/types.yaml#/definitions/uint32
0046 description: number of antennas on the x axis
0047
0048 elan,y_traces:
0049 $ref: /schemas/types.yaml#/definitions/uint32
0050 description: number of antennas on the y axis
0051
0052 touchscreen-size-x: true
0053
0054 touchscreen-size-y: true
0055
0056 touchscreen-x-mm: true
0057
0058 touchscreen-y-mm: true
0059
0060 required:
0061 - compatible
0062 - reg
0063 - interrupts
0064
0065 additionalProperties: false
0066
0067 examples:
0068 - |
0069 #include <dt-bindings/interrupt-controller/irq.h>
0070 i2c {
0071 #address-cells = <1>;
0072 #size-cells = <0>;
0073
0074 touchpad@15 {
0075 compatible = "elan,ekth3000";
0076 reg = <0x15>;
0077 interrupt-parent = <&gpio4>;
0078 interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
0079 wakeup-source;
0080 };
0081 };