Melfas MMS114 family touchscreen controller

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

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

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^touchscreen(@.*)?$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "melfas,mms114", "melfas,mms134s", "melfas,mms136", "melfas,mms152", "melfas,mms345l"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "melfas,mms252"

Item 2

Exact value (const): "melfas,mms114"

reg — required here #

I2C address

clock-frequency — not listed as required here #

I2C client clock frequency, defined for host

Minimum value (minimum): 100000

Maximum value (maximum): 400000

interrupts — required here #

Maximum number of items (maxItems): 1

avdd-supply — not listed as required here #

Analog power supply regulator on AVDD pin

vdd-supply — not listed as required here #

Digital power supply regulator on VDD pin

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.

touchscreen-fuzz-pressure — 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-swapped-x-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-max-pressure — not listed as required here #

true — No constraints added by this property rule.

linux,keycodes — not listed as required here #

Keycodes for the touch keys

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 15

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>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  touchscreen@48 {
    compatible = "melfas,mms114";
    reg = <0x48>;
    interrupt-parent = <&gpio>;
    interrupts = <39 IRQ_TYPE_EDGE_FALLING>;
    avdd-supply = <&ldo1_reg>;
    vdd-supply = <&ldo2_reg>;
    touchscreen-size-x = <720>;
    touchscreen-size-y = <1280>;
    touchscreen-fuzz-x = <10>;
    touchscreen-fuzz-y = <10>;
    touchscreen-fuzz-pressure = <10>;
    touchscreen-inverted-x;
    touchscreen-inverted-y;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page