xref: /freebsd/sys/contrib/device-tree/Bindings/input/goodix,gt7375p.yaml (revision 2e3f49888ec8851bafb22011533217487764fdb0)
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
39  mainboard-vddio-supply:
40    description:
41      The supply on the main board needed to power up IO signals going
42      to the touchscreen. This supply need not go to the touchscreen
43      itself as long as it allows the main board to make signals compatible
44      with what the touchscreen is expecting for its IO rails.
45
46required:
47  - compatible
48  - reg
49  - interrupts
50  - reset-gpios
51  - vdd-supply
52
53additionalProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/clock/qcom,rpmh.h>
58    #include <dt-bindings/gpio/gpio.h>
59    #include <dt-bindings/interrupt-controller/irq.h>
60
61    i2c {
62      #address-cells = <1>;
63      #size-cells = <0>;
64
65      ap_ts: touchscreen@5d {
66        compatible = "goodix,gt7375p";
67        reg = <0x5d>;
68
69        interrupt-parent = <&tlmm>;
70        interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
71
72        reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
73        vdd-supply = <&pp3300_ts>;
74      };
75    };
76