aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/dts/bindings/zmk,behavior-key.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'app/dts/bindings/zmk,behavior-key.yaml')
-rw-r--r--app/dts/bindings/zmk,behavior-key.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/dts/bindings/zmk,behavior-key.yaml b/app/dts/bindings/zmk,behavior-key.yaml
new file mode 100644
index 0000000000..ff7a585eaf
--- /dev/null
+++ b/app/dts/bindings/zmk,behavior-key.yaml
@@ -0,0 +1,31 @@
+# Copyright (c) 2023 The ZMK Contributors
+# SPDX-License-Identifier: MIT
+
+description: |
+ Driver for a dedicated key for invoking a connected behavior.
+
+compatible: "zmk,behavior-key"
+
+include: base.yaml
+
+properties:
+ key:
+ type: phandle
+ required: true
+ description: The GPIO key that triggers wake via interrupt
+ bindings:
+ type: phandle
+ required: true
+ description: The GPIO key that triggers wake via interrupt
+ debounce-press-ms:
+ type: int
+ default: 5
+ description: Debounce time for key press in milliseconds. Use 0 for eager debouncing.
+ debounce-release-ms:
+ type: int
+ default: 5
+ description: Debounce time for key release in milliseconds.
+ debounce-scan-period-ms:
+ type: int
+ default: 1
+ description: Time between reads in milliseconds when any key is pressed.