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 7*8bab661aSEmmanuel Vadottitle: Input Devices Common Properties 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 24b97ee269SEmmanuel Vadot maximum: 0x2ff 25b97ee269SEmmanuel Vadot 26b97ee269SEmmanuel Vadot linux,code: 27b97ee269SEmmanuel Vadot description: 28b97ee269SEmmanuel Vadot Specifies a single numeric keycode value to be used for reporting 29b97ee269SEmmanuel Vadot button/switch events. Specify KEY_RESERVED (0) to opt out of event 30b97ee269SEmmanuel Vadot reporting. 31b97ee269SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 32b97ee269SEmmanuel Vadot maximum: 0x2ff 33b97ee269SEmmanuel Vadot 34b97ee269SEmmanuel Vadot linux,input-type: 35b97ee269SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 36b97ee269SEmmanuel Vadot enum: 37b97ee269SEmmanuel Vadot - 1 # EV_KEY 38b97ee269SEmmanuel Vadot - 2 # EV_REL 39b97ee269SEmmanuel Vadot - 3 # EV_ABS 40b97ee269SEmmanuel Vadot - 5 # EV_SW 41b97ee269SEmmanuel Vadot description: 42b97ee269SEmmanuel Vadot Specifies whether the event is to be interpreted as a key, relative, 43b97ee269SEmmanuel Vadot absolute, or switch. 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot poll-interval: 46c66ec88fSEmmanuel Vadot description: Poll interval time in milliseconds. 47c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot power-off-time-sec: 50c66ec88fSEmmanuel Vadot description: 51c66ec88fSEmmanuel Vadot Duration in seconds which the key should be kept pressed for device to 52c66ec88fSEmmanuel Vadot power off automatically. Device with key pressed shutdown feature can 53c66ec88fSEmmanuel Vadot specify this property. 542eb4d8dcSEmmanuel Vadot 552eb4d8dcSEmmanuel Vadot reset-time-sec: 562eb4d8dcSEmmanuel Vadot description: 572eb4d8dcSEmmanuel Vadot Duration in seconds which the key should be kept pressed for device to 582eb4d8dcSEmmanuel Vadot reset automatically. Device with key pressed reset feature can specify 592eb4d8dcSEmmanuel Vadot this property. 606be33864SEmmanuel Vadot 61b97ee269SEmmanuel Vadotdependencies: 62b97ee269SEmmanuel Vadot linux,input-type: [ "linux,code" ] 63b97ee269SEmmanuel Vadot 646be33864SEmmanuel VadotadditionalProperties: true 65