summaryrefslogtreecommitdiff
path: root/app/dts/bindings/behaviors
diff options
context:
space:
mode:
Diffstat (limited to 'app/dts/bindings/behaviors')
-rw-r--r--app/dts/bindings/behaviors/one_param.yaml14
-rw-r--r--app/dts/bindings/behaviors/two_param.yaml15
-rw-r--r--app/dts/bindings/behaviors/zero_param.yaml11
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-key-press.yaml8
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-reset.yaml8
5 files changed, 56 insertions, 0 deletions
diff --git a/app/dts/bindings/behaviors/one_param.yaml b/app/dts/bindings/behaviors/one_param.yaml
new file mode 100644
index 0000000..1f33aee
--- /dev/null
+++ b/app/dts/bindings/behaviors/one_param.yaml
@@ -0,0 +1,14 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+properties:
+ label:
+ type: string
+ required: true
+ "#binding-cells":
+ type: int
+ required: true
+ const: 1
+
+binding-cells:
+ - param1
diff --git a/app/dts/bindings/behaviors/two_param.yaml b/app/dts/bindings/behaviors/two_param.yaml
new file mode 100644
index 0000000..f8b3af9
--- /dev/null
+++ b/app/dts/bindings/behaviors/two_param.yaml
@@ -0,0 +1,15 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+properties:
+ label:
+ type: string
+ required: true
+ "#binding-cells":
+ type: int
+ required: true
+ const: 2
+
+binding-cells:
+ - param1
+ - param2
diff --git a/app/dts/bindings/behaviors/zero_param.yaml b/app/dts/bindings/behaviors/zero_param.yaml
new file mode 100644
index 0000000..20f1528
--- /dev/null
+++ b/app/dts/bindings/behaviors/zero_param.yaml
@@ -0,0 +1,11 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+properties:
+ label:
+ type: string
+ required: true
+ "#binding-cells":
+ type: int
+ required: true
+ const: 0
diff --git a/app/dts/bindings/behaviors/zmk,behavior-key-press.yaml b/app/dts/bindings/behaviors/zmk,behavior-key-press.yaml
new file mode 100644
index 0000000..0169d7d
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-key-press.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+description: Key press/release behavior
+
+compatible: "zmk,behavior-key-press"
+
+include: one_param.yaml
diff --git a/app/dts/bindings/behaviors/zmk,behavior-reset.yaml b/app/dts/bindings/behaviors/zmk,behavior-reset.yaml
new file mode 100644
index 0000000..c8e5e6f
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-reset.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+description: Keyboard Reset Behavior
+
+compatible: "zmk,behavior-reset"
+
+include: zero_param.yaml