Document the Goodix GT9886 and GT9896 which are part of the GTX8 series of Touchscreen controller ICs from Goodix.
Signed-off-by: Jens Reidel <adr...@mainlining.org> --- .../bindings/input/touchscreen/goodix,gt9886.yaml | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9886.yaml b/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9886.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b1635032c81105836775d3c9b17977c25b1921e4 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9886.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/goodix,gt9886.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Goodix GTX8 series touchscreen controller + +maintainers: + - Jens Reidel <adr...@mainlining.org> + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - goodix,gt9886 + - goodix,gt9896 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + avdd-supply: + description: Analog power supply regulator on AVDD pin + + vddio-supply: + description: power supply regulator on VDDIO pin + + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - avdd-supply + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + #include <dt-bindings/gpio/gpio.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@5d { + compatible = "goodix,gt9886"; + reg = <0x5d>; + interrupt-parent = <&gpio>; + interrupts = <9 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + avdd-supply = <&ts_avdd>; + touchscreen-size-x = <1080>; + touchscreen-size-y = <2340>; + }; + }; + +... -- 2.51.0