xref: /freebsd/sys/contrib/device-tree/Bindings/input/elan,ekth6915.yaml (revision 5f4c09dd85bff675e0ca63c55ea3c517e0fddfcc)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/elan,ekth6915.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Elan eKTH6915 touchscreen controller
8
9maintainers:
10  - Douglas Anderson <dianders@chromium.org>
11
12description:
13  Supports the Elan eKTH6915 touchscreen controller.
14  This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
15
16properties:
17  compatible:
18    items:
19      - const: elan,ekth6915
20
21  reg:
22    const: 0x10
23
24  interrupts:
25    maxItems: 1
26
27  reset-gpios:
28    description: Reset GPIO; not all touchscreens using eKTH6915 hook this up.
29
30  vcc33-supply:
31    description: The 3.3V supply to the touchscreen.
32
33  vccio-supply:
34    description:
35      The IO supply to the touchscreen. Need not be specified if this is the
36      same as the 3.3V supply.
37
38required:
39  - compatible
40  - reg
41  - interrupts
42  - vcc33-supply
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/gpio/gpio.h>
49    #include <dt-bindings/interrupt-controller/irq.h>
50
51    i2c {
52      #address-cells = <1>;
53      #size-cells = <0>;
54
55      ap_ts: touchscreen@10 {
56        compatible = "elan,ekth6915";
57        reg = <0x10>;
58
59        interrupt-parent = <&tlmm>;
60        interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
61
62        reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
63        vcc33-supply = <&pp3300_ts>;
64      };
65    };
66