1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/goodix,gt7375p.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Goodix GT7375P touchscreen
8
9maintainers:
10  - Douglas Anderson <dianders@chromium.org>
11
12description:
13  Supports the Goodix GT7375P touchscreen.
14  This touchscreen uses the i2c-hid protocol but has some non-standard
15  power sequencing required.
16
17properties:
18  compatible:
19    oneOf:
20      - const: goodix,gt7375p
21      - items:
22          - const: goodix,gt7986u
23          - const: goodix,gt7375p
24
25  reg:
26    enum:
27      - 0x5d
28      - 0x14
29
30  interrupts:
31    maxItems: 1
32
33  reset-gpios:
34    true
35
36  vdd-supply:
37    description: The 3.3V supply to the touchscreen.
38
39required:
40  - compatible
41  - reg
42  - interrupts
43  - reset-gpios
44  - vdd-supply
45
46additionalProperties: false
47
48examples:
49  - |
50    #include <dt-bindings/clock/qcom,rpmh.h>
51    #include <dt-bindings/gpio/gpio.h>
52    #include <dt-bindings/interrupt-controller/irq.h>
53
54    i2c {
55      #address-cells = <1>;
56      #size-cells = <0>;
57
58      ap_ts: touchscreen@5d {
59        compatible = "goodix,gt7375p";
60        reg = <0x5d>;
61
62        interrupt-parent = <&tlmm>;
63        interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
64
65        reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
66        vdd-supply = <&pp3300_ts>;
67      };
68    };
69