xref: /freebsd/sys/contrib/device-tree/Bindings/input/input.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
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    $ref: /schemas/types.yaml#/definitions/uint32
36
37additionalProperties: true
38