xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/input.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/input/input.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Common input schema binding
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunproperties:
13*4882a593Smuzhiyun  autorepeat:
14*4882a593Smuzhiyun    description: Enable autorepeat when key is pressed and held down.
15*4882a593Smuzhiyun    type: boolean
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun  linux,keycodes:
18*4882a593Smuzhiyun    description:
19*4882a593Smuzhiyun      Specifies an array of numeric keycode values to be used for reporting
20*4882a593Smuzhiyun      button presses.
21*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32-array
22*4882a593Smuzhiyun    items:
23*4882a593Smuzhiyun      minimum: 0
24*4882a593Smuzhiyun      maximum: 0xff
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun  poll-interval:
27*4882a593Smuzhiyun    description: Poll interval time in milliseconds.
28*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun  power-off-time-sec:
31*4882a593Smuzhiyun    description:
32*4882a593Smuzhiyun      Duration in seconds which the key should be kept pressed for device to
33*4882a593Smuzhiyun      power off automatically. Device with key pressed shutdown feature can
34*4882a593Smuzhiyun      specify this property.
35*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunadditionalProperties: true
38