xref: /linux/Documentation/devicetree/bindings/input/parade,tc3408.yaml (revision 429e6c7f90d12a8551b3eaa9faca7cfaefd99b1d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/parade,tc3408.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Parade TC3408 touchscreen controller
8
9maintainers:
10  - Langyan Ye <yelangyan@huaqin.corp-partner.google.com>
11
12description: |
13  Parade TC3408 is a touchscreen controller supporting the I2C-HID protocol.
14  It requires a reset GPIO and two power supplies (3.3V and 1.8V).
15
16allOf:
17  - $ref: /schemas/input/touchscreen/touchscreen.yaml#
18
19properties:
20  compatible:
21    const: parade,tc3408
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  reset-gpios:
30    maxItems: 1
31
32  vcc33-supply:
33    description: The 3.3V supply to the touchscreen.
34
35  vccio-supply:
36    description: The 1.8V supply to the touchscreen.
37
38required:
39  - compatible
40  - reg
41  - interrupts
42  - reset-gpios
43  - vcc33-supply
44  - vccio-supply
45
46unevaluatedProperties: false
47
48examples:
49  - |
50    #include <dt-bindings/gpio/gpio.h>
51    #include <dt-bindings/interrupt-controller/irq.h>
52
53    i2c {
54      #address-cells = <1>;
55      #size-cells = <0>;
56
57      touchscreen: touchscreen@24 {
58        compatible = "parade,tc3408";
59        reg = <0x24>;
60
61        interrupt-parent = <&pio>;
62        interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
63
64        reset-gpios = <&pio 126 GPIO_ACTIVE_LOW>;
65        vcc33-supply = <&pp3300_tchscr_x>;
66        vccio-supply = <&pp1800_tchscr_report_disable>;
67      };
68    };
69