Skip to content

Commit 7d3b0d9

Browse files
Cong YangBenjamin Tissoires
authored andcommitted
dt-bindings: input: i2c-hid: Introduce Ilitek ili9882t
The ili9882t touch screen chip same as Elan eKTH6915 controller has a reset gpio. The difference is that ili9882t needs to use vccio-supply instead of vcc33-supply. Doug's series[1] allows panels and touchscreens to power on/off together, let's add a phandle for this. [1]: https://lore.kernel.org/r/[email protected] Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Cong Yang <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/20230802071947.1683318-2-yangcong5@huaqin.corp-partner.google.com Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 1d75460 commit 7d3b0d9

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/ilitek,ili9882t.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Ilitek ili9882t touchscreen controller
8+
9+
maintainers:
10+
- Cong Yang <[email protected]>
11+
12+
description:
13+
Supports the Ilitek ili9882t 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:
21+
const: ilitek,ili9882t
22+
23+
reg:
24+
const: 0x41
25+
26+
interrupts:
27+
maxItems: 1
28+
29+
panel: true
30+
31+
reset-gpios:
32+
maxItems: 1
33+
description: Reset GPIO.
34+
35+
vccio-supply:
36+
description: The 1.8V supply to the touchscreen.
37+
38+
required:
39+
- compatible
40+
- reg
41+
- interrupts
42+
- panel
43+
- vccio-supply
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
#include <dt-bindings/gpio/gpio.h>
50+
#include <dt-bindings/interrupt-controller/irq.h>
51+
52+
i2c {
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
56+
touchscreen: touchscreen@41 {
57+
compatible = "ilitek,ili9882t";
58+
reg = <0x41>;
59+
60+
interrupt-parent = <&pio>;
61+
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
62+
63+
panel = <&panel>;
64+
reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>;
65+
vccio-supply = <&mt6366_vio18_reg>;
66+
};
67+
};

0 commit comments

Comments
 (0)