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