summaryrefslogtreecommitdiff
path: root/app/dts
diff options
context:
space:
mode:
authorCrossR <r.cross@lancaster.ac.uk>2020-08-21 22:03:52 +0100
committerCrossR <r.cross@lancaster.ac.uk>2020-08-21 22:03:52 +0100
commit84761fc58931c8caa8cf1bf1b39946a9cb652822 (patch)
treeab5effc50925021507f742ed8206fbd683f4ee99 /app/dts
parent5c29259fedc4a0265064afc0bc141e6bf33425f2 (diff)
parentc619fb9c58c8f2dbcc19d74e7502459b49633113 (diff)
Merge branch 'main' into CrossR/Sofle
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/behaviors/reset.dtsi9
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-reset.yaml5
2 files changed, 14 insertions, 0 deletions
diff --git a/app/dts/behaviors/reset.dtsi b/app/dts/behaviors/reset.dtsi
index 4e3b444..fc4fa14 100644
--- a/app/dts/behaviors/reset.dtsi
+++ b/app/dts/behaviors/reset.dtsi
@@ -1,3 +1,5 @@
+#include <dt-bindings/zmk/reset.h>
+
/ {
behaviors {
reset: behavior_reset {
@@ -5,5 +7,12 @@
label = "RESET";
#binding-cells = <0>;
};
+
+ bootloader: behavior_reset_dfu {
+ compatible = "zmk,behavior-reset";
+ label = "BOOTLOADER_RESET";
+ type = <RST_UF2>;
+ #binding-cells = <0>;
+ };
};
};
diff --git a/app/dts/bindings/behaviors/zmk,behavior-reset.yaml b/app/dts/bindings/behaviors/zmk,behavior-reset.yaml
index c8e5e6f..061b15e 100644
--- a/app/dts/bindings/behaviors/zmk,behavior-reset.yaml
+++ b/app/dts/bindings/behaviors/zmk,behavior-reset.yaml
@@ -6,3 +6,8 @@ description: Keyboard Reset Behavior
compatible: "zmk,behavior-reset"
include: zero_param.yaml
+
+properties:
+ type:
+ type: int
+ default: 0