Cypress TT21000 touchscreen controller

Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/cypress,tt21000.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Cypress TT21000 series (also known as "CYTTSP5" after the marketing name Cypress TrueTouch Standard Product series 5).

Maintainers (maintainers): "Alistair Francis <alistair@alistair23.me>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): touchscreen.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cypress,tt21000"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

interrupts — required here #

Maximum number of items (maxItems): 1

vdd-supply — required here #

Regulator for voltage.

vddio-supply — not listed as required here #

Optional Regulator for I/O voltage.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

linux,keycodes — not listed as required here #

EV_ABS specific event code generated by the axis.

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^button@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): ../input.yaml#

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

linux,keycodes — required here

Keycode to emit

Required in this object (required): "reg", "linux,keycodes"

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", "vdd-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/linux-event-codes.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    touchscreen@24 {
        #address-cells = <1>;
        #size-cells = <0>;

        compatible = "cypress,tt21000";
        reg = <0x24>;
        pinctrl-names = "default";
        pinctrl-0 = <&tp_reset_ds203>;
        interrupt-parent = <&pio>;
        interrupts = <1 5 IRQ_TYPE_LEVEL_LOW>;
        reset-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>;
        vdd-supply = <&reg_touch>;

        button@0 {
            reg = <0>;
            linux,keycodes = <KEY_HOMEPAGE>;
        };

        button@1 {
            reg = <1>;
            linux,keycodes = <KEY_MENU>;
        };

        button@2 {
            reg = <2>;
            linux,keycodes = <KEY_BACK>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page