1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/input.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Common input schema binding
8
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: boolean
16
17  linux,keycodes:
18    description:
19      Specifies an array of numeric keycode values to be used for reporting
20      button presses.
21    allOf:
22      - $ref: /schemas/types.yaml#/definitions/uint32-array
23      - items:
24          minimum: 0
25          maximum: 0xff
26
27  poll-interval:
28    description: Poll interval time in milliseconds.
29    $ref: /schemas/types.yaml#/definitions/uint32
30
31  power-off-time-sec:
32    description:
33      Duration in seconds which the key should be kept pressed for device to
34      power off automatically. Device with key pressed shutdown feature can
35      specify this property.
36    $ref: /schemas/types.yaml#/definitions/uint32
37