Path: blob/master/Documentation/devicetree/bindings/input/input.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/input.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Input Devices Common Properties78maintainers:9- Dmitry Torokhov <dmitry.torokhov@gmail.com>1011properties:12autorepeat:13description: Enable autorepeat when key is pressed and held down.14type: boolean1516linux,keycodes:17description:18Specifies an array of numeric keycode values to be used for reporting19button presses.20$ref: /schemas/types.yaml#/definitions/uint32-array21items:22minimum: 023maximum: 0x2ff2425linux,code:26description:27Specifies a single numeric keycode value to be used for reporting28button/switch events. Specify KEY_RESERVED (0) to opt out of event29reporting.30$ref: /schemas/types.yaml#/definitions/uint3231maximum: 0x2ff3233linux,input-type:34$ref: /schemas/types.yaml#/definitions/uint3235enum:36- 1 # EV_KEY37- 2 # EV_REL38- 3 # EV_ABS39- 5 # EV_SW40description:41Specifies whether the event is to be interpreted as a key, relative,42absolute, or switch.4344poll-interval:45description: Poll interval time in milliseconds.46$ref: /schemas/types.yaml#/definitions/uint324748power-off-time-sec:49description:50Duration in seconds which the key should be kept pressed for device to51power off automatically. Device with key pressed shutdown feature can52specify this property.5354reset-time-sec:55description:56Duration in seconds which the key should be kept pressed for device to57reset automatically. Device with key pressed reset feature can specify58this property.5960dependencies:61linux,input-type: [ "linux,code" ]6263additionalProperties: true646566