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