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