Skip to content

Commit f61023d

Browse files
benjamingaignarddtor
authored andcommitted
dt-bindings: touchscreen: Convert Goodix touchscreen to json-schema
Convert the Goodix binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 1d6204e commit f61023d

File tree

2 files changed

+78
-50
lines changed

2 files changed

+78
-50
lines changed

Documentation/devicetree/bindings/input/touchscreen/goodix.txt

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/touchscreen/goodix.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Goodix GT9xx series touchscreen controller Bindings
8+
9+
maintainers:
10+
- Dmitry Torokhov <[email protected]>
11+
12+
allOf:
13+
- $ref: touchscreen.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- goodix,gt1151
19+
- goodix,gt5663
20+
- goodix,gt5688
21+
- goodix,gt911
22+
- goodix,gt9110
23+
- goodix,gt912
24+
- goodix,gt927
25+
- goodix,gt9271
26+
- goodix,gt928
27+
- goodix,gt967
28+
29+
reg:
30+
enum: [ 0x5d, 0x14 ]
31+
32+
interrupts:
33+
maxItems: 1
34+
35+
irq-gpios:
36+
description: GPIO pin used for IRQ.
37+
The driver uses the interrupt gpio pin as
38+
output to reset the device.
39+
maxItems: 1
40+
41+
reset-gpios:
42+
maxItems: 1
43+
44+
AVDD28-supply:
45+
description: Analog power supply regulator on AVDD28 pin
46+
47+
VDDIO-supply:
48+
description: GPIO power supply regulator on VDDIO pin
49+
50+
touchscreen-inverted-x: true
51+
touchscreen-inverted-y: true
52+
touchscreen-size-x: true
53+
touchscreen-size-y: true
54+
touchscreen-swapped-x-y: true
55+
56+
additionalProperties: false
57+
58+
required:
59+
- compatible
60+
- reg
61+
- interrupts
62+
63+
examples:
64+
- |
65+
i2c@00000000 {
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
gt928@5d {
69+
compatible = "goodix,gt928";
70+
reg = <0x5d>;
71+
interrupt-parent = <&gpio>;
72+
interrupts = <0 0>;
73+
irq-gpios = <&gpio1 0 0>;
74+
reset-gpios = <&gpio1 1 0>;
75+
};
76+
};
77+
78+
...

0 commit comments

Comments
 (0)