summaryrefslogtreecommitdiff
path: root/app/dts
diff options
context:
space:
mode:
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/bindings/zmk,keymap.yaml13
-rw-r--r--app/dts/bindings/zmk,kscan-composite.yaml27
-rw-r--r--app/dts/bindings/zmk,kscan-mock.yaml17
-rw-r--r--app/dts/bindings/zmk,layers.yaml14
4 files changed, 71 insertions, 0 deletions
diff --git a/app/dts/bindings/zmk,keymap.yaml b/app/dts/bindings/zmk,keymap.yaml
new file mode 100644
index 0000000..8c56f93
--- /dev/null
+++ b/app/dts/bindings/zmk,keymap.yaml
@@ -0,0 +1,13 @@
+description: |
+ Allows defining a keymap composed of multiple layers
+
+compatible: "zmk,keymap"
+
+properties:
+ label:
+ type: string
+ required: true
+
+ layers:
+ type: phandles
+ required: true
diff --git a/app/dts/bindings/zmk,kscan-composite.yaml b/app/dts/bindings/zmk,kscan-composite.yaml
new file mode 100644
index 0000000..6126c30
--- /dev/null
+++ b/app/dts/bindings/zmk,kscan-composite.yaml
@@ -0,0 +1,27 @@
+description: |
+ Allows composing multiple KSCAN devices into one virtual device
+
+compatible: "zmk,kscan-composite"
+
+properties:
+ label:
+ type: string
+ rows:
+ type: int
+ columns:
+ type: int
+
+child-binding:
+ description: "Details of an included KSCAN devices"
+
+ properties:
+ label:
+ type: string
+ kscan:
+ type: phandle
+ row-offset:
+ type: int
+ default: 0
+ column-offset:
+ type: int
+ default: 0
diff --git a/app/dts/bindings/zmk,kscan-mock.yaml b/app/dts/bindings/zmk,kscan-mock.yaml
new file mode 100644
index 0000000..41dd5b8
--- /dev/null
+++ b/app/dts/bindings/zmk,kscan-mock.yaml
@@ -0,0 +1,17 @@
+description: |
+ Allows defining a mock keyboard scan driver that simulates periodic events.
+
+compatible: "zmk,kscan-mock"
+
+properties:
+ label:
+ type: string
+ event-period:
+ type: int
+ description: Milliseconds between each generated event
+ events:
+ type: array
+ rows:
+ type: int
+ columns:
+ type: int
diff --git a/app/dts/bindings/zmk,layers.yaml b/app/dts/bindings/zmk,layers.yaml
new file mode 100644
index 0000000..c9b462a
--- /dev/null
+++ b/app/dts/bindings/zmk,layers.yaml
@@ -0,0 +1,14 @@
+description: |
+ Allows defining the various keymap layers for use.
+
+compatible: "zmk,layers"
+
+child-binding:
+ description: "A layer to be used in a keymap"
+
+ properties:
+ label:
+ type: string
+ keys:
+ type: array
+