summaryrefslogtreecommitdiff
path: root/drivers/zephyr/dts/bindings/gpio-kscan.yaml
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-05-26 20:48:15 -0400
committerPete Johanson <peter@peterjohanson.com>2020-05-26 20:48:15 -0400
commit72ad47e0275c0035aa9ea04ee6127a14bbe50b65 (patch)
treef6f862bb23a4a175c0a54d2c89d0ecdc4a45346e /drivers/zephyr/dts/bindings/gpio-kscan.yaml
parentdfd5bc0586b6201d7fef279b0cc6248fd5a3558c (diff)
Initial import of GPIO kscan driver into ZMK.
Diffstat (limited to 'drivers/zephyr/dts/bindings/gpio-kscan.yaml')
-rw-r--r--drivers/zephyr/dts/bindings/gpio-kscan.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/zephyr/dts/bindings/gpio-kscan.yaml b/drivers/zephyr/dts/bindings/gpio-kscan.yaml
new file mode 100644
index 0000000..0698c3e
--- /dev/null
+++ b/drivers/zephyr/dts/bindings/gpio-kscan.yaml
@@ -0,0 +1,25 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: Apache-2.0
+
+description: GPIO keyboard matrix controller
+
+compatible: "gpio-kscan"
+
+include: kscan.yaml
+
+properties:
+ row-gpios:
+ type: phandle-array
+ required: true
+ col-gpios:
+ type: phandle-array
+ required: true
+ debounce-period:
+ type: int
+ default: 5
+ diode-direction:
+ type: string
+ default: row2col
+ enum:
+ - row2col
+ - col2row