Skip to content

Commit cf1f976

Browse files
hvilleneuvedoodtor
authored andcommitted
dt-bindings: input: add debounce-delay-ms common property
A few bindings are already defining a debounce-delay-ms property, so add it to the input binding to reduce redundant redefines. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://patch.msgid.link/20260312180304.3865850-2-hugo@hugovil.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 2e32d2b commit cf1f976

6 files changed

Lines changed: 16 additions & 12 deletions

File tree

Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ maintainers:
1010
- Robin van der Gracht <robin@protonic.nl>
1111

1212
allOf:
13+
- $ref: /schemas/input/input.yaml#
1314
- $ref: /schemas/input/matrix-keymap.yaml#
1415

1516
properties:
@@ -33,9 +34,7 @@ properties:
3334
interrupts:
3435
maxItems: 1
3536

36-
debounce-delay-ms:
37-
maxItems: 1
38-
description: Debouncing interval time in milliseconds
37+
debounce-delay-ms: true
3938

4039
linux,keymap: true
4140

Documentation/devicetree/bindings/input/cirrus,ep9307-keypad.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ maintainers:
1010
- Alexander Sverdlin <alexander.sverdlin@gmail.com>
1111

1212
allOf:
13+
- $ref: input.yaml#
1314
- $ref: /schemas/input/matrix-keymap.yaml#
1415

1516
description:
@@ -37,10 +38,8 @@ properties:
3738
clocks:
3839
maxItems: 1
3940

40-
debounce-delay-ms:
41-
description: |
42-
Time in microseconds that key must be pressed or
43-
released for state change interrupt to trigger.
41+
# Time for state change interrupt to trigger
42+
debounce-delay-ms: true
4443

4544
cirrus,prescale:
4645
description: row/column counter pre-scaler load value

Documentation/devicetree/bindings/input/gpio-matrix-keypad.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ description:
1818
report the event using GPIO interrupts to the cpu.
1919

2020
allOf:
21+
- $ref: input.yaml#
2122
- $ref: /schemas/input/matrix-keymap.yaml#
2223

2324
properties:
@@ -46,9 +47,7 @@ properties:
4647
Force GPIO polarity to active low.
4748
In the absence of this property GPIOs are treated as active high.
4849

49-
debounce-delay-ms:
50-
description: Debounce interval in milliseconds.
51-
default: 0
50+
debounce-delay-ms: true
5251

5352
col-scan-delay-us:
5453
description:

Documentation/devicetree/bindings/input/input.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ properties:
1414
description: Enable autorepeat when key is pressed and held down.
1515
type: boolean
1616

17+
debounce-delay-ms:
18+
description:
19+
Debounce delay in milliseconds. This is the time during which the key
20+
press or release signal must remain stable before it is considered valid.
21+
minimum: 0
22+
maximum: 999
23+
default: 0
24+
1725
linux,keycodes:
1826
description:
1927
Specifies an array of numeric keycode values to be used for reporting

Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ maintainers:
1010
- Mattijs Korpershoek <mkorpershoek@kernel.org>
1111

1212
allOf:
13+
- $ref: input.yaml#
1314
- $ref: /schemas/input/matrix-keymap.yaml#
1415

1516
description: |

Documentation/devicetree/bindings/mfd/fsl,mc13xxx.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ properties:
7676
debounce-delay-ms:
7777
enum: [0, 30, 150, 750]
7878
default: 30
79-
description:
80-
Sets the debouncing delay in milliseconds.
8179

8280
active-low:
8381
description: Set active when pin is pulled low.

0 commit comments

Comments
 (0)