Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Rob Herring and committed by
Dmitry Torokhov
8ac14d2c 7d321ab2

+27 -29
+1 -1
Documentation/devicetree/bindings/input/adc-joystick.yaml
··· 45 45 patternProperties: 46 46 "^axis@[0-9a-f]+$": 47 47 type: object 48 + $ref: input.yaml# 48 49 description: > 49 50 Represents a joystick axis bound to the given ADC channel. 50 51 For each entry in the io-channels list, one axis subnode with a matching ··· 58 57 description: Index of an io-channels list entry bound to this axis. 59 58 60 59 linux,code: 61 - $ref: /schemas/types.yaml#/definitions/uint32 62 60 description: EV_ABS specific event code generated by the axis. 63 61 64 62 abs-range:
+2 -3
Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
··· 44 44 patternProperties: 45 45 "^button-[0-9]+$": 46 46 type: object 47 + $ref: input.yaml# 47 48 properties: 48 49 label: 49 50 $ref: /schemas/types.yaml#/definitions/string 50 51 description: Descriptive name of the key 51 52 52 - linux,code: 53 - $ref: /schemas/types.yaml#/definitions/uint32 54 - description: Keycode to emit 53 + linux,code: true 55 54 56 55 channel: 57 56 $ref: /schemas/types.yaml#/definitions/uint32
+2 -5
Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
··· 417 417 patternProperties: 418 418 "^event-(prox|touch)$": 419 419 type: object 420 + $ref: input.yaml# 420 421 description: 421 422 Represents a proximity or touch event reported by the channel. 422 423 ··· 464 463 The IQS7222B does not feature channel-specific timeouts; the time- 465 464 out specified for any one channel applies to all channels. 466 465 467 - linux,code: 468 - $ref: /schemas/types.yaml#/definitions/uint32 469 - description: 470 - Numeric key or switch code associated with the event. Specify 471 - KEY_RESERVED (0) to opt out of event reporting. 466 + linux,code: true 472 467 473 468 linux,input-type: 474 469 $ref: /schemas/types.yaml#/definitions/uint32
-1
Documentation/devicetree/bindings/input/gpio-keys.yaml
··· 34 34 35 35 linux,code: 36 36 description: Key / Axis code to emit. 37 - $ref: /schemas/types.yaml#/definitions/uint32 38 37 39 38 linux,input-type: 40 39 description:
+8
Documentation/devicetree/bindings/input/input.yaml
··· 23 23 minimum: 0 24 24 maximum: 0x2ff 25 25 26 + linux,code: 27 + description: 28 + Specifies a single numeric keycode value to be used for reporting 29 + button/switch events. Specify KEY_RESERVED (0) to opt out of event 30 + reporting. 31 + $ref: /schemas/types.yaml#/definitions/uint32 32 + maximum: 0x2ff 33 + 26 34 poll-interval: 27 35 description: Poll interval time in milliseconds. 28 36 $ref: /schemas/types.yaml#/definitions/uint32
+6 -9
Documentation/devicetree/bindings/input/iqs269a.yaml
··· 370 370 patternProperties: 371 371 "^event-prox(-alt)?$": 372 372 type: object 373 + $ref: input.yaml# 373 374 description: 374 375 Represents a proximity event reported by the channel in response to 375 376 a decrease in counts. Node names suffixed with '-alt' instead corre- ··· 397 396 default: 10 398 397 description: Specifies the threshold for the event. 399 398 400 - linux,code: 401 - $ref: /schemas/types.yaml#/definitions/uint32 402 - description: Numeric key or switch code associated with the event. 399 + linux,code: true 403 400 404 401 additionalProperties: false 405 402 406 403 "^event-touch(-alt)?$": 407 404 type: object 405 + $ref: input.yaml# 408 406 description: Represents a touch event reported by the channel. 409 407 410 408 properties: ··· 421 421 default: 4 422 422 description: Specifies the hysteresis for the event. 423 423 424 - linux,code: 425 - $ref: /schemas/types.yaml#/definitions/uint32 426 - description: Numeric key or switch code associated with the event. 424 + linux,code: true 427 425 428 426 additionalProperties: false 429 427 430 428 "^event-deep(-alt)?$": 431 429 type: object 430 + $ref: input.yaml# 432 431 description: Represents a deep-touch event reported by the channel. 433 432 434 433 properties: ··· 445 446 default: 0 446 447 description: Specifies the hysteresis for the event. 447 448 448 - linux,code: 449 - $ref: /schemas/types.yaml#/definitions/uint32 450 - description: Numeric key or switch code associated with the event. 449 + linux,code: true 451 450 452 451 additionalProperties: false 453 452
+2 -3
Documentation/devicetree/bindings/input/iqs626a.yaml
··· 449 449 patternProperties: 450 450 "^event-(prox|touch|deep)(-alt)?$": 451 451 type: object 452 + $ref: input.yaml# 452 453 description: 453 454 Represents a proximity, touch or deep-touch event reported by the 454 455 channel in response to a decrease in counts. Node names suffixed with ··· 488 487 Specifies the hysteresis for the event (touch and deep-touch 489 488 events only). 490 489 491 - linux,code: 492 - $ref: /schemas/types.yaml#/definitions/uint32 493 - description: Numeric key or switch code associated with the event. 490 + linux,code: true 494 491 495 492 linux,input-type: 496 493 $ref: /schemas/types.yaml#/definitions/uint32
+2 -3
Documentation/devicetree/bindings/input/iqs62x-keys.yaml
··· 89 89 patternProperties: 90 90 "^hall-switch-(north|south)$": 91 91 type: object 92 + $ref: input.yaml# 92 93 description: 93 94 Represents north/south-field Hall-effect sensor touch or proximity 94 95 events. Note that north/south-field orientation is reversed on the 95 96 IQS620AXzCSR device due to its flip-chip package. 96 97 97 98 properties: 98 - linux,code: 99 - $ref: /schemas/types.yaml#/definitions/uint32 100 - description: Numeric switch code associated with the event. 99 + linux,code: true 101 100 102 101 azoteq,use-prox: 103 102 $ref: /schemas/types.yaml#/definitions/flag
+4 -4
Documentation/devicetree/bindings/input/max77650-onkey.yaml
··· 16 16 The onkey controller is represented as a sub-node of the PMIC node on 17 17 the device tree. 18 18 19 + allOf: 20 + - $ref: input.yaml# 21 + 19 22 properties: 20 23 compatible: 21 24 const: maxim,max77650-onkey 22 25 23 26 linux,code: 24 - $ref: /schemas/types.yaml#/definitions/uint32 25 - description: 26 - The key-code to be reported when the key is pressed. Defaults 27 - to KEY_POWER. 27 + default: 116 # KEY_POWER 28 28 29 29 maxim,onkey-slide: 30 30 $ref: /schemas/types.yaml#/definitions/flag