summaryrefslogtreecommitdiff
path: root/app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-matrix.yaml
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-06-24 10:06:35 -0400
committerPete Johanson <peter@peterjohanson.com>2020-06-24 10:14:27 -0400
commitd35a95c7afc9e5ef6f087034dbf4cbb03048f9cd (patch)
treecc5b179646d8a293f4656947c463fd58e41499e2 /app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-matrix.yaml
parent23931aa4fede2d81437a01e5d69329157219c2a5 (diff)
Initial working Clueboard California Macropad w/ proton-c fixes
* Basic Clueboard Californai Macropad shield definition. * New "direct" KSCAN driver that supports non-matrix direct wiring for switches, needed for macropad that doesn't have a matrix at all. * Some renames for existing KSCAN GPIO driver to make the implied "matrix" part explicit.
Diffstat (limited to 'app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-matrix.yaml')
-rw-r--r--app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-matrix.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-matrix.yaml b/app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-matrix.yaml
new file mode 100644
index 0000000..5ebcbdd
--- /dev/null
+++ b/app/drivers/zephyr/dts/bindings/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