Input Devices Common Properties

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

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

Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"

Properties and child nodes (properties) #

autorepeat — not listed as required here #

Enable autorepeat when key is pressed and held down.

Value type (type): "boolean"

linux,keycodes — not listed as required here #

Specifies an array of numeric keycode values to be used for reporting button presses.

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

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 767

linux,code — not listed as required here #

Specifies a single numeric keycode value to be used for reporting button/switch events. Specify KEY_RESERVED (0) to opt out of event reporting.

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

Maximum value (maximum): 767

linux,input-type — not listed as required here #

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

Allowed values (enum): 1, 2, 3, 5

Specifies whether the event is to be interpreted as a key, relative, absolute, or switch.

poll-interval — not listed as required here #

Poll interval time in milliseconds.

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

power-off-time-sec — not listed as required here #

Duration in seconds which the key should be kept pressed for device to power off automatically. Device with key pressed shutdown feature can specify this property.

reset-time-sec — not listed as required here #

Duration in seconds which the key should be kept pressed for device to reset automatically. Device with key pressed reset feature can specify this property.

Property dependencies (dependencies) #

linux,input-type — applies when this property is present #

Also requires: "linux,code"

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

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Line 37: EV_KEY

Line 38: EV_REL

Line 39: EV_ABS

Line 40: EV_SW

Edit this page