blob: c5d9e0e919f9ccf3fb4e401ca6e4061214542c74 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
7title: Ilitek ili9882t touchscreen controller
8
9maintainers:
10 - Cong Yang <yangcong5@huaqin.corp-partner.google.com>
11
12description:
13 Supports the Ilitek ili9882t touchscreen controller.
14 This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
15
16allOf:
17 - $ref: /schemas/input/touchscreen/touchscreen.yaml#
18
19properties:
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
38required:
39 - compatible
40 - reg
41 - interrupts
42 - panel
43 - vccio-supply
44
45additionalProperties: false
46
47examples:
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 };