xref: /openbmc/linux/Documentation/devicetree/bindings/input/input.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
17cef1079SMichal Vokáč# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
27cef1079SMichal Vokáč%YAML 1.2
37cef1079SMichal Vokáč---
47cef1079SMichal Vokáč$id: http://devicetree.org/schemas/input/input.yaml#
57cef1079SMichal Vokáč$schema: http://devicetree.org/meta-schemas/core.yaml#
67cef1079SMichal Vokáč
7*ab040c42SKrzysztof Kozlowskititle: Input Devices Common Properties
87cef1079SMichal Vokáč
97cef1079SMichal Vokáčmaintainers:
107cef1079SMichal Vokáč  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
117cef1079SMichal Vokáč
127cef1079SMichal Vokáčproperties:
137cef1079SMichal Vokáč  autorepeat:
147cef1079SMichal Vokáč    description: Enable autorepeat when key is pressed and held down.
157cef1079SMichal Vokáč    type: boolean
167cef1079SMichal Vokáč
177cef1079SMichal Vokáč  linux,keycodes:
187cef1079SMichal Vokáč    description:
197cef1079SMichal Vokáč      Specifies an array of numeric keycode values to be used for reporting
207cef1079SMichal Vokáč      button presses.
213d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32-array
223d21a460SRob Herring    items:
237cef1079SMichal Vokáč      minimum: 0
247d321ab2SRob Herring      maximum: 0x2ff
257cef1079SMichal Vokáč
268ac14d2cSRob Herring  linux,code:
278ac14d2cSRob Herring    description:
288ac14d2cSRob Herring      Specifies a single numeric keycode value to be used for reporting
298ac14d2cSRob Herring      button/switch events. Specify KEY_RESERVED (0) to opt out of event
308ac14d2cSRob Herring      reporting.
318ac14d2cSRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
328ac14d2cSRob Herring    maximum: 0x2ff
338ac14d2cSRob Herring
3475448ff7SRob Herring  linux,input-type:
3575448ff7SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
3675448ff7SRob Herring    enum:
3775448ff7SRob Herring      - 1   # EV_KEY
3875448ff7SRob Herring      - 2   # EV_REL
3975448ff7SRob Herring      - 3   # EV_ABS
4075448ff7SRob Herring      - 5   # EV_SW
4175448ff7SRob Herring    description:
4275448ff7SRob Herring      Specifies whether the event is to be interpreted as a key, relative,
4375448ff7SRob Herring      absolute, or switch.
4475448ff7SRob Herring
45ee358cb4SMichal Vokáč  poll-interval:
46ee358cb4SMichal Vokáč    description: Poll interval time in milliseconds.
47ee358cb4SMichal Vokáč    $ref: /schemas/types.yaml#/definitions/uint32
48ee358cb4SMichal Vokáč
497cef1079SMichal Vokáč  power-off-time-sec:
507cef1079SMichal Vokáč    description:
517cef1079SMichal Vokáč      Duration in seconds which the key should be kept pressed for device to
527cef1079SMichal Vokáč      power off automatically. Device with key pressed shutdown feature can
537cef1079SMichal Vokáč      specify this property.
546a0e321eSRob Herring
5544a8c5a9SCristian Ciocaltea  reset-time-sec:
5644a8c5a9SCristian Ciocaltea    description:
5744a8c5a9SCristian Ciocaltea      Duration in seconds which the key should be kept pressed for device to
5844a8c5a9SCristian Ciocaltea      reset automatically. Device with key pressed reset feature can specify
5944a8c5a9SCristian Ciocaltea      this property.
6044a8c5a9SCristian Ciocaltea
6175448ff7SRob Herringdependencies:
6275448ff7SRob Herring  linux,input-type: [ "linux,code" ]
6375448ff7SRob Herring
646a0e321eSRob HerringadditionalProperties: true
65