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: | |
d74ac6f6 ZX |
21 | enum: |
22 | - elan,ekth6915 | |
ded3021e DA |
23 | |
24 | reg: | |
25 | const: 0x10 | |
26 | ||
27 | interrupts: | |
28 | maxItems: 1 | |
29 | ||
2ca376ef DA |
30 | panel: true |
31 | ||
ded3021e DA |
32 | reset-gpios: |
33 | description: Reset GPIO; not all touchscreens using eKTH6915 hook this up. | |
34 | ||
35 | vcc33-supply: | |
36 | description: The 3.3V supply to the touchscreen. | |
37 | ||
38 | vccio-supply: | |
39 | description: | |
40 | The IO supply to the touchscreen. Need not be specified if this is the | |
41 | same as the 3.3V supply. | |
42 | ||
43 | required: | |
44 | - compatible | |
45 | - reg | |
46 | - interrupts | |
47 | - vcc33-supply | |
48 | ||
49 | additionalProperties: false | |
50 | ||
51 | examples: | |
52 | - | | |
53 | #include <dt-bindings/gpio/gpio.h> | |
54 | #include <dt-bindings/interrupt-controller/irq.h> | |
55 | ||
56 | i2c { | |
57 | #address-cells = <1>; | |
58 | #size-cells = <0>; | |
59 | ||
60 | ap_ts: touchscreen@10 { | |
61 | compatible = "elan,ekth6915"; | |
62 | reg = <0x10>; | |
63 | ||
64 | interrupt-parent = <&tlmm>; | |
65 | interrupts = <9 IRQ_TYPE_LEVEL_LOW>; | |
66 | ||
67 | reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; | |
68 | vcc33-supply = <&pp3300_ts>; | |
69 | }; | |
70 | }; |