Skip to content

Commit 643d877

Browse files
asemjonovscarlescufi
authored andcommitted
gpio: Add dts binding for software debounce gpio
Created dts binding for software debounced gpio Signed-off-by: Al Semjonovs <[email protected]>
1 parent 0eb0e2b commit 643d877

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2022 Google LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Zephyr GPIO KEYS parent node
5+
6+
compatible: "zephyr,gpio-keys"
7+
8+
include: [gpio-keys.yaml]

dts/bindings/input/gpio-keys.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ compatible: "gpio-keys"
77

88
include: base.yaml
99

10+
properties:
11+
debounce-interval-ms:
12+
type: int
13+
default: 30
14+
description: |
15+
Debouncing interval time in milliseconds.
16+
If not specified defaults to 30.
17+
1018
child-binding:
1119
description: GPIO KEYS child node
1220
properties:
@@ -16,3 +24,7 @@ child-binding:
1624
label:
1725
type: string
1826
description: Descriptive name of the key
27+
zephyr,code:
28+
type: int
29+
default: 0
30+
description: Key / Axis code to emit.

0 commit comments

Comments
 (0)