Path: blob/master/Documentation/devicetree/bindings/input/goodix,gt7986u-spifw.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/goodix,gt7986u-spifw.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Goodix GT7986U SPI HID Touchscreen78maintainers:9- Charles Wang <charles.goodix@gmail.com>1011description: |12Supports the Goodix GT7986U touchscreen.13This touch controller reports data packaged according to the HID protocol14over the SPI bus, but it is incompatible with Microsoft's HID-over-SPI protocol.1516NOTE: these bindings are distinct from the bindings used with the17GT7986U when the chip is running I2C firmware. This is because there's18not a single device that talks over both I2C and SPI but rather19distinct touchscreens that happen to be built with the same ASIC but20that are distinct products running distinct firmware.2122allOf:23- $ref: /schemas/spi/spi-peripheral-props.yaml#2425properties:26compatible:27enum:28- goodix,gt7986u-spifw2930reg:31maxItems: 13233interrupts:34maxItems: 13536reset-gpios:37maxItems: 13839spi-max-frequency: true4041required:42- compatible43- reg44- interrupts45- reset-gpios4647unevaluatedProperties: false4849examples:50- |51#include <dt-bindings/interrupt-controller/irq.h>52#include <dt-bindings/gpio/gpio.h>5354spi {55#address-cells = <1>;56#size-cells = <0>;5758touchscreen@0 {59compatible = "goodix,gt7986u-spifw";60reg = <0>;61interrupt-parent = <&gpio>;62interrupts = <25 IRQ_TYPE_LEVEL_LOW>;63reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;64spi-max-frequency = <10000000>;65};66};6768...697071