summaryrefslogtreecommitdiff
path: root/app/drivers/zephyr/dts
diff options
context:
space:
mode:
authorJay Greco <jayv.greco@gmail.com>2020-10-21 20:15:55 -0700
committerJay Greco <jayv.greco@gmail.com>2020-10-27 18:58:58 +0000
commit1522c91d73d7f35643986daa508dd7704a5f2798 (patch)
treed785b097428dcd7e9460736562c5aba3966ff92d /app/drivers/zephyr/dts
parent3b9caaaf907d67dc76daa0db074aac6a8efec02a (diff)
Add new kscan_gpio_demux driver
+ zmk,kscan_gpio_demux is now a compatible kscan option + kscan_gpio_demux is based heavily off of the implementation of kscan_gpio_matrix, modified to address cols using an n-to-1 demultiplexer chip instead of discrete IO + Added zmk,kscan_gpio_demux.yaml file * modified CMakeLists to include new source files
Diffstat (limited to 'app/drivers/zephyr/dts')
-rw-r--r--app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-demux.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-demux.yaml b/app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-demux.yaml
new file mode 100644
index 0000000..a2d8d24
--- /dev/null
+++ b/app/drivers/zephyr/dts/bindings/zmk,kscan-gpio-demux.yaml
@@ -0,0 +1,22 @@
+# Copyright (c) 2020, The ZMK Contributors
+# SPDX-License-Identifier: MIT
+
+description: GPIO keyboard demux controller
+
+compatible: "zmk,kscan-gpio-demux"
+
+include: kscan.yaml
+
+properties:
+ input-gpios:
+ type: phandle-array
+ required: true
+ output-gpios:
+ type: phandle-array
+ required: true
+ debounce-period:
+ type: int
+ default: 5
+ polling-interval-msec:
+ type: int
+ default: 25