Commit | Line | Data |
---|---|---|
ded3021e DA |
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 | ||
7 | title: Elan eKTH6915 touchscreen controller | |
8 | ||
9 | maintainers: | |
10 | - Douglas Anderson <dianders@chromium.org> | |
11 | ||
12 | description: | |
13 | Supports the Elan eKTH6915 touchscreen controller. | |
14 | This touchscreen controller uses the i2c-hid protocol with a reset GPIO. | |
15 | ||
2ca376ef DA |
16 | allOf: |
17 | - $ref: /schemas/input/touchscreen/touchscreen.yaml# | |
18 | ||
ded3021e DA |
19 | properties: |
20 | compatible: | |
07fc16fa JH |
21 | oneOf: |
22 | - items: | |
23 | - enum: | |
24 | - elan,ekth5015m | |
25 | - const: elan,ekth6915 | |
e0808d7a ZL |
26 | - enum: |
27 | - elan,ekth6915 | |
28 | - elan,ekth6a12nay | |
ded3021e DA |
29 | |
30 | reg: | |
31 | const: 0x10 | |
32 | ||
33 | interrupts: | |
34 | maxItems: 1 | |
35 | ||
2ca376ef DA |
36 | panel: true |
37 | ||
ded3021e DA |
38 | reset-gpios: |
39 | description: Reset GPIO; not all touchscreens using eKTH6915 hook this up. | |
40 | ||
e538d4b8 JH |
41 | no-reset-on-power-off: |
42 | type: boolean | |
43 | description: | |
44 | Reset line is wired so that it can (and should) be left deasserted when | |
45 | the power supply is off. | |
46 | ||
ded3021e DA |
47 | vcc33-supply: |
48 | description: The 3.3V supply to the touchscreen. | |
49 | ||
50 | vccio-supply: | |
51 | description: | |
52 | The IO supply to the touchscreen. Need not be specified if this is the | |
53 | same as the 3.3V supply. | |
54 | ||
55 | required: | |
56 | - compatible | |
57 | - reg | |
58 | - interrupts | |
59 | - vcc33-supply | |
60 | ||
61 | additionalProperties: false | |
62 | ||
63 | examples: | |
64 | - | | |
65 | #include <dt-bindings/gpio/gpio.h> | |
66 | #include <dt-bindings/interrupt-controller/irq.h> | |
67 | ||
68 | i2c { | |
69 | #address-cells = <1>; | |
70 | #size-cells = <0>; | |
71 | ||
07fc16fa JH |
72 | touchscreen@10 { |
73 | compatible = "elan,ekth5015m", "elan,ekth6915"; | |
ded3021e DA |
74 | reg = <0x10>; |
75 | ||
76 | interrupt-parent = <&tlmm>; | |
77 | interrupts = <9 IRQ_TYPE_LEVEL_LOW>; | |
78 | ||
79 | reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; | |
80 | vcc33-supply = <&pp3300_ts>; | |
81 | }; | |
82 | }; |