65 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/input/input.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Input Devices Common Properties8 9maintainers:10 - Dmitry Torokhov <dmitry.torokhov@gmail.com>11 12properties:13 autorepeat:14 description: Enable autorepeat when key is pressed and held down.15 type: boolean16 17 linux,keycodes:18 description:19 Specifies an array of numeric keycode values to be used for reporting20 button presses.21 $ref: /schemas/types.yaml#/definitions/uint32-array22 items:23 minimum: 024 maximum: 0x2ff25 26 linux,code:27 description:28 Specifies a single numeric keycode value to be used for reporting29 button/switch events. Specify KEY_RESERVED (0) to opt out of event30 reporting.31 $ref: /schemas/types.yaml#/definitions/uint3232 maximum: 0x2ff33 34 linux,input-type:35 $ref: /schemas/types.yaml#/definitions/uint3236 enum:37 - 1 # EV_KEY38 - 2 # EV_REL39 - 3 # EV_ABS40 - 5 # EV_SW41 description:42 Specifies whether the event is to be interpreted as a key, relative,43 absolute, or switch.44 45 poll-interval:46 description: Poll interval time in milliseconds.47 $ref: /schemas/types.yaml#/definitions/uint3248 49 power-off-time-sec:50 description:51 Duration in seconds which the key should be kept pressed for device to52 power off automatically. Device with key pressed shutdown feature can53 specify this property.54 55 reset-time-sec:56 description:57 Duration in seconds which the key should be kept pressed for device to58 reset automatically. Device with key pressed reset feature can specify59 this property.60 61dependencies:62 linux,input-type: [ "linux,code" ]63 64additionalProperties: true65