Skip to content

Commit f9a056e

Browse files
diandersbentiss
authored andcommitted
dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent 1fe16cf commit f9a056e

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
};

0 commit comments

Comments
 (0)