0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/input/input.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Common input schema binding
0008
0009 maintainers:
0010 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
0011
0012 properties:
0013 autorepeat:
0014 description: Enable autorepeat when key is pressed and held down.
0015 type: boolean
0016
0017 linux,keycodes:
0018 description:
0019 Specifies an array of numeric keycode values to be used for reporting
0020 button presses.
0021 $ref: /schemas/types.yaml#/definitions/uint32-array
0022 items:
0023 minimum: 0
0024 maximum: 0x2ff
0025
0026 linux,code:
0027 description:
0028 Specifies a single numeric keycode value to be used for reporting
0029 button/switch events. Specify KEY_RESERVED (0) to opt out of event
0030 reporting.
0031 $ref: /schemas/types.yaml#/definitions/uint32
0032 maximum: 0x2ff
0033
0034 linux,input-type:
0035 $ref: /schemas/types.yaml#/definitions/uint32
0036 enum:
0037 - 1 # EV_KEY
0038 - 2 # EV_REL
0039 - 3 # EV_ABS
0040 - 5 # EV_SW
0041 description:
0042 Specifies whether the event is to be interpreted as a key, relative,
0043 absolute, or switch.
0044
0045 poll-interval:
0046 description: Poll interval time in milliseconds.
0047 $ref: /schemas/types.yaml#/definitions/uint32
0048
0049 power-off-time-sec:
0050 description:
0051 Duration in seconds which the key should be kept pressed for device to
0052 power off automatically. Device with key pressed shutdown feature can
0053 specify this property.
0054
0055 reset-time-sec:
0056 description:
0057 Duration in seconds which the key should be kept pressed for device to
0058 reset automatically. Device with key pressed reset feature can specify
0059 this property.
0060
0061 dependencies:
0062 linux,input-type: [ "linux,code" ]
0063
0064 additionalProperties: true