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