dt-bindings: input: Centralize 'linux,code' definition
Multiple bindings use 'linux,code', but there is not a central definition and type. Add 'linux,code' to input.yaml and update all the users to use it. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Samuel Holland <samuel@sholland.org> Acked-by: Jeff LaBundy <jeff@labundy.com> Acked-by: Artur Rojek <contact@artur-rojek.eu> Link: https://lore.kernel.org/r/20220608211207.2058487-3-robh@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
7d321ab297
commit
8ac14d2c2d
@ -45,6 +45,7 @@ additionalProperties: false
|
|||||||
patternProperties:
|
patternProperties:
|
||||||
"^axis@[0-9a-f]+$":
|
"^axis@[0-9a-f]+$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
description: >
|
description: >
|
||||||
Represents a joystick axis bound to the given ADC channel.
|
Represents a joystick axis bound to the given ADC channel.
|
||||||
For each entry in the io-channels list, one axis subnode with a matching
|
For each entry in the io-channels list, one axis subnode with a matching
|
||||||
@ -57,7 +58,6 @@ patternProperties:
|
|||||||
description: Index of an io-channels list entry bound to this axis.
|
description: Index of an io-channels list entry bound to this axis.
|
||||||
|
|
||||||
linux,code:
|
linux,code:
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description: EV_ABS specific event code generated by the axis.
|
description: EV_ABS specific event code generated by the axis.
|
||||||
|
|
||||||
abs-range:
|
abs-range:
|
||||||
|
@ -44,14 +44,13 @@ properties:
|
|||||||
patternProperties:
|
patternProperties:
|
||||||
"^button-[0-9]+$":
|
"^button-[0-9]+$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
properties:
|
properties:
|
||||||
label:
|
label:
|
||||||
$ref: /schemas/types.yaml#/definitions/string
|
$ref: /schemas/types.yaml#/definitions/string
|
||||||
description: Descriptive name of the key
|
description: Descriptive name of the key
|
||||||
|
|
||||||
linux,code:
|
linux,code: true
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description: Keycode to emit
|
|
||||||
|
|
||||||
channel:
|
channel:
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
@ -417,6 +417,7 @@ patternProperties:
|
|||||||
patternProperties:
|
patternProperties:
|
||||||
"^event-(prox|touch)$":
|
"^event-(prox|touch)$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
description:
|
description:
|
||||||
Represents a proximity or touch event reported by the channel.
|
Represents a proximity or touch event reported by the channel.
|
||||||
|
|
||||||
@ -463,11 +464,7 @@ patternProperties:
|
|||||||
The IQS7222B does not feature channel-specific timeouts; the time-
|
The IQS7222B does not feature channel-specific timeouts; the time-
|
||||||
out specified for any one channel applies to all channels.
|
out specified for any one channel applies to all channels.
|
||||||
|
|
||||||
linux,code:
|
linux,code: true
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description:
|
|
||||||
Numeric key or switch code associated with the event. Specify
|
|
||||||
KEY_RESERVED (0) to opt out of event reporting.
|
|
||||||
|
|
||||||
linux,input-type:
|
linux,input-type:
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
@ -34,7 +34,6 @@ patternProperties:
|
|||||||
|
|
||||||
linux,code:
|
linux,code:
|
||||||
description: Key / Axis code to emit.
|
description: Key / Axis code to emit.
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
|
|
||||||
linux,input-type:
|
linux,input-type:
|
||||||
description:
|
description:
|
||||||
|
@ -23,6 +23,14 @@ properties:
|
|||||||
minimum: 0
|
minimum: 0
|
||||||
maximum: 0x2ff
|
maximum: 0x2ff
|
||||||
|
|
||||||
|
linux,code:
|
||||||
|
description:
|
||||||
|
Specifies a single numeric keycode value to be used for reporting
|
||||||
|
button/switch events. Specify KEY_RESERVED (0) to opt out of event
|
||||||
|
reporting.
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
maximum: 0x2ff
|
||||||
|
|
||||||
poll-interval:
|
poll-interval:
|
||||||
description: Poll interval time in milliseconds.
|
description: Poll interval time in milliseconds.
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
@ -370,6 +370,7 @@ patternProperties:
|
|||||||
patternProperties:
|
patternProperties:
|
||||||
"^event-prox(-alt)?$":
|
"^event-prox(-alt)?$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
description:
|
description:
|
||||||
Represents a proximity event reported by the channel in response to
|
Represents a proximity event reported by the channel in response to
|
||||||
a decrease in counts. Node names suffixed with '-alt' instead corre-
|
a decrease in counts. Node names suffixed with '-alt' instead corre-
|
||||||
@ -396,14 +397,13 @@ patternProperties:
|
|||||||
default: 10
|
default: 10
|
||||||
description: Specifies the threshold for the event.
|
description: Specifies the threshold for the event.
|
||||||
|
|
||||||
linux,code:
|
linux,code: true
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description: Numeric key or switch code associated with the event.
|
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
"^event-touch(-alt)?$":
|
"^event-touch(-alt)?$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
description: Represents a touch event reported by the channel.
|
description: Represents a touch event reported by the channel.
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
@ -421,14 +421,13 @@ patternProperties:
|
|||||||
default: 4
|
default: 4
|
||||||
description: Specifies the hysteresis for the event.
|
description: Specifies the hysteresis for the event.
|
||||||
|
|
||||||
linux,code:
|
linux,code: true
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description: Numeric key or switch code associated with the event.
|
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
"^event-deep(-alt)?$":
|
"^event-deep(-alt)?$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
description: Represents a deep-touch event reported by the channel.
|
description: Represents a deep-touch event reported by the channel.
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
@ -446,9 +445,7 @@ patternProperties:
|
|||||||
default: 0
|
default: 0
|
||||||
description: Specifies the hysteresis for the event.
|
description: Specifies the hysteresis for the event.
|
||||||
|
|
||||||
linux,code:
|
linux,code: true
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description: Numeric key or switch code associated with the event.
|
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
|
@ -449,6 +449,7 @@ patternProperties:
|
|||||||
patternProperties:
|
patternProperties:
|
||||||
"^event-(prox|touch|deep)(-alt)?$":
|
"^event-(prox|touch|deep)(-alt)?$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
description:
|
description:
|
||||||
Represents a proximity, touch or deep-touch event reported by the
|
Represents a proximity, touch or deep-touch event reported by the
|
||||||
channel in response to a decrease in counts. Node names suffixed with
|
channel in response to a decrease in counts. Node names suffixed with
|
||||||
@ -487,9 +488,7 @@ patternProperties:
|
|||||||
Specifies the hysteresis for the event (touch and deep-touch
|
Specifies the hysteresis for the event (touch and deep-touch
|
||||||
events only).
|
events only).
|
||||||
|
|
||||||
linux,code:
|
linux,code: true
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description: Numeric key or switch code associated with the event.
|
|
||||||
|
|
||||||
linux,input-type:
|
linux,input-type:
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
@ -89,15 +89,14 @@ properties:
|
|||||||
patternProperties:
|
patternProperties:
|
||||||
"^hall-switch-(north|south)$":
|
"^hall-switch-(north|south)$":
|
||||||
type: object
|
type: object
|
||||||
|
$ref: input.yaml#
|
||||||
description:
|
description:
|
||||||
Represents north/south-field Hall-effect sensor touch or proximity
|
Represents north/south-field Hall-effect sensor touch or proximity
|
||||||
events. Note that north/south-field orientation is reversed on the
|
events. Note that north/south-field orientation is reversed on the
|
||||||
IQS620AXzCSR device due to its flip-chip package.
|
IQS620AXzCSR device due to its flip-chip package.
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
linux,code:
|
linux,code: true
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
|
||||||
description: Numeric switch code associated with the event.
|
|
||||||
|
|
||||||
azoteq,use-prox:
|
azoteq,use-prox:
|
||||||
$ref: /schemas/types.yaml#/definitions/flag
|
$ref: /schemas/types.yaml#/definitions/flag
|
||||||
|
@ -16,15 +16,15 @@ description: |
|
|||||||
The onkey controller is represented as a sub-node of the PMIC node on
|
The onkey controller is represented as a sub-node of the PMIC node on
|
||||||
the device tree.
|
the device tree.
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: input.yaml#
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
const: maxim,max77650-onkey
|
const: maxim,max77650-onkey
|
||||||
|
|
||||||
linux,code:
|
linux,code:
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
default: 116 # KEY_POWER
|
||||||
description:
|
|
||||||
The key-code to be reported when the key is pressed. Defaults
|
|
||||||
to KEY_POWER.
|
|
||||||
|
|
||||||
maxim,onkey-slide:
|
maxim,onkey-slide:
|
||||||
$ref: /schemas/types.yaml#/definitions/flag
|
$ref: /schemas/types.yaml#/definitions/flag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user