input.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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#
  6. title: Input Devices Common Properties
  7. maintainers:
  8. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  9. properties:
  10. autorepeat:
  11. description: Enable autorepeat when key is pressed and held down.
  12. type: boolean
  13. linux,keycodes:
  14. description:
  15. Specifies an array of numeric keycode values to be used for reporting
  16. button presses.
  17. $ref: /schemas/types.yaml#/definitions/uint32-array
  18. items:
  19. minimum: 0
  20. maximum: 0x2ff
  21. linux,code:
  22. description:
  23. Specifies a single numeric keycode value to be used for reporting
  24. button/switch events. Specify KEY_RESERVED (0) to opt out of event
  25. reporting.
  26. $ref: /schemas/types.yaml#/definitions/uint32
  27. maximum: 0x2ff
  28. linux,input-type:
  29. $ref: /schemas/types.yaml#/definitions/uint32
  30. enum:
  31. - 1 # EV_KEY
  32. - 2 # EV_REL
  33. - 3 # EV_ABS
  34. - 5 # EV_SW
  35. description:
  36. Specifies whether the event is to be interpreted as a key, relative,
  37. absolute, or switch.
  38. poll-interval:
  39. description: Poll interval time in milliseconds.
  40. $ref: /schemas/types.yaml#/definitions/uint32
  41. power-off-time-sec:
  42. description:
  43. Duration in seconds which the key should be kept pressed for device to
  44. power off automatically. Device with key pressed shutdown feature can
  45. specify this property.
  46. reset-time-sec:
  47. description:
  48. Duration in seconds which the key should be kept pressed for device to
  49. reset automatically. Device with key pressed reset feature can specify
  50. this property.
  51. dependencies:
  52. linux,input-type: [ "linux,code" ]
  53. additionalProperties: true