summaryrefslogtreecommitdiff
path: root/app/dts
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-07-22 02:13:52 -0400
committerPete Johanson <peter@peterjohanson.com>2020-07-22 02:13:52 -0400
commitadfa1b5443e0a7ccaa973d69aac59ffbf8607d2f (patch)
treef4edee9ff161a2d1e5da58037b075ed1b8675328 /app/dts
parent5896c3032b4d8c7ed4962672b75360a54c5b0e1c (diff)
Initial work on sensor bindings.
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/bindings/zmk,keymap-sensors.yaml9
-rw-r--r--app/dts/bindings/zmk,layers.yaml3
2 files changed, 12 insertions, 0 deletions
diff --git a/app/dts/bindings/zmk,keymap-sensors.yaml b/app/dts/bindings/zmk,keymap-sensors.yaml
new file mode 100644
index 0000000..c56361d
--- /dev/null
+++ b/app/dts/bindings/zmk,keymap-sensors.yaml
@@ -0,0 +1,9 @@
+description: |
+ Allows defining the collection of sensors bound in the keymap layers
+
+compatible: "zmk,keymap-sensors"
+
+properties:
+ sensors:
+ type: phandles
+ required: true
diff --git a/app/dts/bindings/zmk,layers.yaml b/app/dts/bindings/zmk,layers.yaml
index 34cbb95..1a3592e 100644
--- a/app/dts/bindings/zmk,layers.yaml
+++ b/app/dts/bindings/zmk,layers.yaml
@@ -13,3 +13,6 @@ child-binding:
bindings:
type: phandle-array
required: true
+ sensor-bindings:
+ type: phandle-array
+ required: false