xref: /linux/Documentation/devicetree/bindings/input/input.yaml (revision 6b20a5d173cd5647f0bb1ac8796264b70c377d79)
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    $ref: /schemas/types.yaml#/definitions/uint32-array
22    items:
23      minimum: 0
24      maximum: 0xff
25
26  poll-interval:
27    description: Poll interval time in milliseconds.
28    $ref: /schemas/types.yaml#/definitions/uint32
29
30  power-off-time-sec:
31    description:
32      Duration in seconds which the key should be kept pressed for device to
33      power off automatically. Device with key pressed shutdown feature can
34      specify this property.
35
36  reset-time-sec:
37    description:
38      Duration in seconds which the key should be kept pressed for device to
39      reset automatically. Device with key pressed reset feature can specify
40      this property.
41
42additionalProperties: true
43