Elantech I2C Touchscreen

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

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

Maintainers (maintainers): "David Heidelberg <david@ixit.cz>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "elan,ektf3624", "elan,ekth3500"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "elan,ekth3915"

Item 2

Exact value (const): "elan,ekth3500"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

wakeup-source — not listed as required here #

Value type (type): "boolean"

touchscreen can be used as a wakeup source.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

reset gpio the chip is connected to.

vcc33-supply — not listed as required here #

a phandle for the regulator supplying 3.3V power.

vccio-supply — not listed as required here #

a phandle for the regulator supplying IO power.

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 — not listed as required here #

true — No constraints added by this property rule.

touchscreen-size-y — not listed as 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"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

    touchscreen@10 {
        compatible = "elan,ekth3500";
        reg = <0x10>;

        interrupt-parent = <&gpio4>;
        interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
        wakeup-source;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page