forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: input: Add common input binding in json-schema
Create schema for the common input properties and merge all properties from the Documentation/devicetree/bindings/input/keys.txt binding into this common schema. Signed-off-by: Michal Vokáč <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
- Loading branch information
Showing
4 changed files
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/input/input.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Common input schema binding | ||
|
||
maintainers: | ||
- Dmitry Torokhov <[email protected]> | ||
|
||
properties: | ||
autorepeat: | ||
description: Enable autorepeat when key is pressed and held down. | ||
type: boolean | ||
|
||
linux,keycodes: | ||
description: | ||
Specifies an array of numeric keycode values to be used for reporting | ||
button presses. | ||
allOf: | ||
- $ref: /schemas/types.yaml#/definitions/uint32-array | ||
- items: | ||
minimum: 0 | ||
maximum: 0xff | ||
|
||
power-off-time-sec: | ||
description: | ||
Duration in seconds which the key should be kept pressed for device to | ||
power off automatically. Device with key pressed shutdown feature can | ||
specify this property. | ||
$ref: /schemas/types.yaml#/definitions/uint32 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters