| 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 |
| 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,gt1158 |
| 20 |
- goodix,gt5663 |
| 21 |
- goodix,gt5688 |
| 22 |
- goodix,gt911 |
| 23 |
- goodix,gt9110 |
| 24 |
- goodix,gt912 |
| 25 |
- goodix,gt9147 |
| 26 |
- goodix,gt917s |
| 27 |
- goodix,gt927 |
| 28 |
- goodix,gt9271 |
| 29 |
- goodix,gt928 |
| 30 |
- goodix,gt9286 |
| 31 |
- goodix,gt967 |
| 32 |
|
| 33 |
reg: |
| 34 |
enum: [ 0x5d, 0x14 ] |
| 35 |
|
| 36 |
interrupts: |
| 37 |
maxItems: 1 |
| 38 |
|
| 39 |
irq-gpios: |
| 40 |
description: GPIO pin used for IRQ input. Additionally, this line is |
| 41 |
sampled by the device on reset deassertion to select the I2C client |
| 42 |
address, thus it can be driven by the host during the reset sequence. |
| 43 |
maxItems: 1 |
| 44 |
|
| 45 |
panel: true |
| 46 |
|
| 47 |
reset-gpios: |
| 48 |
maxItems: 1 |
| 49 |
|
| 50 |
AVDD28-supply: |
| 51 |
description: Analog power supply regulator on AVDD28 pin |
| 52 |
|
| 53 |
VDDIO-supply: |
| 54 |
description: GPIO power supply regulator on VDDIO pin |
| 55 |
|
| 56 |
touchscreen-inverted-x: true |
| 57 |
touchscreen-inverted-y: true |
| 58 |
touchscreen-size-x: true |
| 59 |
touchscreen-size-y: true |
| 60 |
touchscreen-swapped-x-y: true |
| 61 |
|
| 62 |
additionalProperties: false |
| 63 |
|
| 64 |
required: |
| 65 |
- compatible |
| 66 |
- reg |
| 67 |
|
| 68 |
examples: |
| 69 |
- | |
| 70 |
i2c { |
| 71 |
#address-cells = <1>; |
| 72 |
#size-cells = <0>; |
| 73 |
touchscreen@5d { |
| 74 |
compatible = "goodix,gt928"; |
| 75 |
reg = <0x5d>; |
| 76 |
interrupt-parent = <&gpio>; |
| 77 |
interrupts = <0 0>; |
| 78 |
irq-gpios = <&gpio1 0 0>; |
| 79 |
reset-gpios = <&gpio1 1 0>; |
| 80 |
}; |
| 81 |
}; |
| 82 |
|
| 83 |
... |