summaryrefslogtreecommitdiff
path: root/app/drivers/zephyr/dts/bindings/kscan/zmk,kscan-gpio-matrix.yaml
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-11-19 17:20:43 +0000
committerPete Johanson <peter@peterjohanson.com>2020-12-03 21:06:01 -0500
commit8d9ae1fdf379020d4743b4f85f465e88b148ac29 (patch)
tree07cb741277cc5a85a66c280f258d551690c120e7 /app/drivers/zephyr/dts/bindings/kscan/zmk,kscan-gpio-matrix.yaml
parent177b28f01de88ece582604c0ef0abaaaefe2f624 (diff)
refactor: Align drivers with Zephyr file system conventions
PR: #400
Diffstat (limited to 'app/drivers/zephyr/dts/bindings/kscan/zmk,kscan-gpio-matrix.yaml')
-rw-r--r--app/drivers/zephyr/dts/bindings/kscan/zmk,kscan-gpio-matrix.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/drivers/zephyr/dts/bindings/kscan/zmk,kscan-gpio-matrix.yaml b/app/drivers/zephyr/dts/bindings/kscan/zmk,kscan-gpio-matrix.yaml
new file mode 100644
index 0000000..5ebcbdd
--- /dev/null
+++ b/app/drivers/zephyr/dts/bindings/kscan/zmk,kscan-gpio-matrix.yaml
@@ -0,0 +1,25 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+description: GPIO keyboard matrix controller
+
+compatible: "zmk,kscan-gpio-matrix"
+
+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