Synaptics RMI4 compliant devices

Schema identifier ($id): "http://devicetree.org/schemas/input/syna,rmi4.yaml#"

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

Maintainers (maintainers): "Jason A. Donenfeld <Jason@zx2c4.com>", "Matthias Schiffer <matthias.schiffer@ew.tq-group.com>", "Vincent Huang <vincent.huang@tw.synaptics.com>"

The Synaptics RMI4 (Register Mapped Interface 4) core is able to support RMI4 devices using different transports (I2C, SPI) and different functions (e.g. Function 1, 2D sensors using Function 11 or 12).

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "syna,rmi4-i2c", "syna,rmi4-spi"

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

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Active low signal

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

spi-cpol — not listed as required here #

true — No constraints added by this property rule.

syna,reset-delay-ms — not listed as required here #

Delay to wait after resetting the device.

syna,startup-delay-ms — not listed as required here #

Delay to wait after powering on the device.

vdd-supply — not listed as required here #

true — No constraints added by this property rule.

vio-supply — not listed as required here #

true — No constraints added by this property rule.

rmi4-f01@1 — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Function 1

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

syna,nosleep-mode — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

If set the device will run at full power without sleeping. nosleep has 3 modes, 0 will not change the default setting, 1 will disable nosleep (allow sleeping), and 2 will enable nosleep (disabling sleep).

syna,wakeup-threshold — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the amplitude of the disturbance to the background capacitance that will cause the device to wake from dozing.

syna,doze-holdoff-ms — not listed as required here

The delay to wait after the last finger lift and the first doze cycle.

syna,doze-interval-ms — not listed as required here

The time period that the device sleeps between finger activity.

Required in this object (required): "reg"

rmi4-f1a@1a — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

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

RMI4 Function 1A is for capacitive keys.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

linux,keycodes — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "reg"

Properties matching a name pattern (patternProperties) #

^rmi4-f1[12]@1[12]$ — name matches this regular expression #

Value type (type): "object"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

RMI4 Function 11 and Function 12 are for 2D touch position sensing.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

syna,clip-x-low — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value for X.

syna,clip-y-low — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value for Y.

syna,clip-x-high — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value for X.

syna,clip-y-high — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value for Y.

syna,offset-x — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Add an offset to X.

syna,offset-y — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Add an offset to Y.

syna,delta-x-threshold — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum distance on the X axis required to generate an interrupt in reduced reporting mode.

syna,delta-y-threshold — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum distance on the Y axis required to generate an interrupt in reduced reporting mode.

syna,sensor-type — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 1, 2

Sensor type: 1 for touchscreen 2 for touchpad.

syna,disable-report-mask — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Mask for disabling posiiton reporting. Used to disable reporing absolute position data.

syna,rezero-wait-ms — not listed as required here

Time to wait after issuing a rezero command.

Required in this object (required): "reg"

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

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Other functions, not documented yet.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "syna,rmi4-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

spi-rx-delay-us — not listed as required here

false — Not permitted by this property rule.

spi-tx-delay-us — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Properties and child nodes (properties)

syna,reset-delay-ms — not listed as required here

false — Not permitted by this property rule.

syna,startup-delay-ms — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

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

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

    touchscreen@20 {
        compatible = "syna,rmi4-i2c";
        reg = <0x20>;
        interrupt-parent = <&gpx1>;
        interrupts = <6 IRQ_TYPE_EDGE_FALLING>;

        syna,startup-delay-ms = <100>;
        vdd-supply = <&tsp_vdd>;
        vio-supply = <&ldo32_reg>;

        pinctrl-0 = <&touch_irq>;
        pinctrl-names = "default";
        #address-cells = <1>;
        #size-cells = <0>;

        rmi4-f01@1 {
            reg = <0x1>;
            syna,nosleep-mode = <1>;
        };

        rmi4-f12@12 {
            reg = <0x12>;
            syna,sensor-type = <1>;
        };

        rmi4-f1a@1a {
            reg = <0x1a>;
            linux,keycodes = <KEY_BACK KEY_HOME KEY_MENU>;
        };
    };
};
#include <dt-bindings/interrupt-controller/irq.h>

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

    touchscreen@0 {
        compatible = "syna,rmi4-spi";
        reg = <0x0>;
        interrupt-parent = <&gpx1>;
        interrupts = <6 IRQ_TYPE_EDGE_FALLING>;

        spi-max-frequency = <4000000>;
        spi-rx-delay-us = <30>;
        spi-cpha;
        spi-cpol;

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

        rmi4-f01@1 {
            reg = <0x1>;
            syna,nosleep-mode = <1>;
        };

        rmi4-f11@11 {
            reg = <0x11>;
            touchscreen-inverted-y;
            syna,sensor-type = <2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page