Zinitix BT4xx and BT5xx series touchscreen controller
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/zinitix,bt400.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Zinitix BT4xx and BT5xx series of touchscreen controllers are Korea-produced touchscreens with embedded microcontrollers. The BT4xx series was produced 2010-2013 and the BT5xx series 2013-2014.
Maintainers (maintainers): "Michael Srba <Michael.Srba@seznam.cz>", "Linus Walleij <linusw@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Shared schema rule (
$ref):../input.yaml#
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^touchscreen(@.*)?$"
compatible — required here #
Allowed values (enum): "zinitix,bt402", "zinitix,bt403", "zinitix,bt404", "zinitix,bt412", "zinitix,bt413", "zinitix,bt431", "zinitix,bt432", "zinitix,bt531", "zinitix,bt532", "zinitix,bt538", "zinitix,bt541", "zinitix,bt548", "zinitix,bt554", "zinitix,at100"
reg — required here #
I2C address on the I2C bus
clock-frequency — not listed as required here #
I2C client clock frequency, defined for host when using the device on the I2C bus
Minimum value (minimum): 0
Maximum value (maximum): 400000
interrupts — required here #
Interrupt to host
Maximum number of items (maxItems): 1
vcca-supply — not listed as required here #
Analog power supply regulator on the VCCA pin
vdd-supply — not listed as required here #
Digital power supply regulator on the VDD pin. In older device trees this can be the accidental name for the analog supply on the VCCA pin, and in that case the deprecated vddo-supply is used for the digital power supply.
vddo-supply — not listed as required here #
Deprecated name for the digital power supply, use vdd-supply as this reflects the real name of the pin. If this supply is present, the vdd-supply represents VCCA instead of VDD. Implementers should first check for this property, and if it is present assume that the vdd-supply represents the analog supply.
Deprecated (deprecated): true
reset-gpios — not listed as required here #
Reset line for the touchscreen, should be tagged as GPIO_ACTIVE_LOW
zinitix,mode — not listed as required here #
Mode of reporting touch points. Some modes may not work with a particular ts firmware for unknown reasons. Available modes are 1 and 2. Mode 2 is the default and preferred.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
linux,keycodes — not listed as required here #
This property specifies an array of keycodes assigned to the touch-keys that can be present in some touchscreen configurations. If the touch-keys are enabled, controller firmware will assign some touch sense lines to those keys.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
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-fuzz-x — not listed as required here #
true — No constraints added by this property rule.
touchscreen-fuzz-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", "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@20 {
compatible = "zinitix,bt541";
reg = <0x20>;
interrupt-parent = <&gpio>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
vcca-supply = <®_vcca_tsp>;
vdd-supply = <®_vdd_tsp>;
touchscreen-size-x = <540>;
touchscreen-size-y = <960>;
zinitix,mode = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)