Goodix Berlin series touchscreen controller
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/goodix,gt9916.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Goodix Berlin series of touchscreen controllers be connected to either I2C or SPI buses.
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "goodix,gt9897", "goodix,gt9916"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
Analog power supply regulator on AVDD pin
vddio-supply — not listed as required here #
power supply regulator on VDDIO pin
spi-max-frequency — not listed as required here #
true — No constraints added by this property rule.
touchscreen-inverted-x — not listed as required here #
true — No constraints added by this property rule.
touchscreen-inverted-y — not listed as required here #
true — No constraints added by this property rule.
touchscreen-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — required here #
true — No constraints added by this property rule.
touchscreen-swapped-x-y — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "avdd-supply", "touchscreen-size-x", "touchscreen-size-y"
Examples (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,gt9916";
reg = <0x5d>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
avdd-supply = <&ts_avdd>;
touchscreen-size-x = <1024>;
touchscreen-size-y = <768>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
num-cs = <1>;
cs-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
touchscreen@0 {
compatible = "goodix,gt9916";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
avdd-supply = <&ts_avdd>;
spi-max-frequency = <1000000>;
touchscreen-size-x = <1024>;
touchscreen-size-y = <768>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause