treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / input / input.yaml
blob6d519046b3afc9de9822f3f85f865e7a52538890
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#
7 title: Common input schema binding
9 maintainers:
10   - Dmitry Torokhov <dmitry.torokhov@gmail.com>
12 properties:
13   autorepeat:
14     description: Enable autorepeat when key is pressed and held down.
15     type: boolean
17   linux,keycodes:
18     description:
19       Specifies an array of numeric keycode values to be used for reporting
20       button presses.
21     allOf:
22       - $ref: /schemas/types.yaml#/definitions/uint32-array
23       - items:
24           minimum: 0
25           maximum: 0xff
27   poll-interval:
28     description: Poll interval time in milliseconds.
29     $ref: /schemas/types.yaml#/definitions/uint32
31   power-off-time-sec:
32     description:
33       Duration in seconds which the key should be kept pressed for device to
34       power off automatically. Device with key pressed shutdown feature can
35       specify this property.
36     $ref: /schemas/types.yaml#/definitions/uint32