Skip to content

Commit 9184b17

Browse files
charles-goodixJiri Kosina
authored and
Jiri Kosina
committed
dt-bindings: input: Goodix SPI HID Touchscreen
The Goodix GT7986U touch controller report touch data according to the HID protocol through the SPI bus. However, it is incompatible with Microsoft's HID-over-SPI protocol. Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Charles Wang <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 75e16c8 commit 9184b17

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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,gt7986u.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: GOODIX GT7986U SPI HID Touchscreen
8+
9+
maintainers:
10+
- Charles Wang <[email protected]>
11+
12+
description: Supports the Goodix GT7986U touchscreen.
13+
This touch controller reports data packaged according to the HID protocol,
14+
but is incompatible with Microsoft's HID-over-SPI protocol.
15+
16+
allOf:
17+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- goodix,gt7986u
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
reset-gpios:
31+
maxItems: 1
32+
33+
goodix,hid-report-addr:
34+
$ref: /schemas/types.yaml#/definitions/uint32
35+
description:
36+
The register address for retrieving HID report data.
37+
This address is related to the device firmware and may
38+
change after a firmware update.
39+
40+
spi-max-frequency: true
41+
42+
additionalProperties: false
43+
44+
required:
45+
- compatible
46+
- reg
47+
- interrupts
48+
- reset-gpios
49+
- goodix,hid-report-addr
50+
51+
examples:
52+
- |
53+
#include <dt-bindings/interrupt-controller/irq.h>
54+
#include <dt-bindings/gpio/gpio.h>
55+
56+
spi {
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
60+
touchscreen@0 {
61+
compatible = "goodix,gt7986u";
62+
reg = <0>;
63+
interrupt-parent = <&gpio>;
64+
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
65+
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
66+
spi-max-frequency = <10000000>;
67+
goodix,hid-report-addr = <0x22c8c>;
68+
};
69+
};
70+
71+
...

0 commit comments

Comments
 (0)