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    items:
20      - const: goodix,gt7375p
21
22  reg:
23    enum:
24      - 0x5d
25      - 0x14
26
27  interrupts:
28    maxItems: 1
29
30  reset-gpios:
31    true
32
33  vdd-supply:
34    description: The 3.3V supply to the touchscreen.
35
36required:
37  - compatible
38  - reg
39  - interrupts
40  - reset-gpios
41  - vdd-supply
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/clock/qcom,rpmh.h>
48    #include <dt-bindings/gpio/gpio.h>
49    #include <dt-bindings/interrupt-controller/irq.h>
50
51    i2c {
52      #address-cells = <1>;
53      #size-cells = <0>;
54
55      ap_ts: touchscreen@5d {
56        compatible = "goodix,gt7375p";
57        reg = <0x5d>;
58
59        interrupt-parent = <&tlmm>;
60        interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
61
62        reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
63        vdd-supply = <&pp3300_ts>;
64      };
65    };
66