GNU Linux-libre 5.19-rc6-gnu
[releases.git] / Documentation / devicetree / bindings / input / goodix,gt7375p.yaml
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
7 title: Goodix GT7375P touchscreen
8
9 maintainers:
10   - Douglas Anderson <dianders@chromium.org>
11
12 description:
13   Supports the Goodix GT7375P touchscreen.
14   This touchscreen uses the i2c-hid protocol but has some non-standard
15   power sequencing required.
16
17 properties:
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
36 required:
37   - compatible
38   - reg
39   - interrupts
40   - reset-gpios
41   - vdd-supply
42
43 additionalProperties: false
44
45 examples:
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     };