aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/dts
diff options
context:
space:
mode:
authorPeter Johanson <[email protected]>2024-03-25 02:39:54 -0700
committerPete Johanson <[email protected]>2024-03-27 20:59:26 -0700
commit7e7110d85f0fe24948b319382bed723e38f5336c (patch)
tree78d26c6be3d6d9ba2c9bdf6341407518cf239eb6 /app/dts
parent41d81801ed11a1dca918c9c0088351856e4e1808 (diff)
downloadzmk-7e7110d85f0fe24948b319382bed723e38f5336c.tar.gz
zmk-7e7110d85f0fe24948b319382bed723e38f5336c.zip
fix(pm): Fixes for dedicated on/off on peripherals.
* Add new flag to differentiate soft off on peripherals that is invoked by split GATT svc and dedicated additional ones tied to GPIO pin.
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/behaviors/soft_off.dtsi3
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-soft-off.yaml3
2 files changed, 5 insertions, 1 deletions
diff --git a/app/dts/behaviors/soft_off.dtsi b/app/dts/behaviors/soft_off.dtsi
index 1e58c7711d..63c04b1dd7 100644
--- a/app/dts/behaviors/soft_off.dtsi
+++ b/app/dts/behaviors/soft_off.dtsi
@@ -6,9 +6,10 @@
/ {
behaviors {
- /omit-if-no-ref/ soft_off: soft_off {
+ /omit-if-no-ref/ soft_off: keymap_soft_off {
compatible = "zmk,behavior-soft-off";
#binding-cells = <0>;
+ split-peripheral-off-on-press;
};
};
};
diff --git a/app/dts/bindings/behaviors/zmk,behavior-soft-off.yaml b/app/dts/bindings/behaviors/zmk,behavior-soft-off.yaml
index 1467ede477..865e656f0d 100644
--- a/app/dts/bindings/behaviors/zmk,behavior-soft-off.yaml
+++ b/app/dts/bindings/behaviors/zmk,behavior-soft-off.yaml
@@ -12,3 +12,6 @@ properties:
type: int
required: false
description: Number of milliseconds the behavior must be held before releasing will actually trigger a soft-off.
+ split-peripheral-off-on-press:
+ type: boolean
+ description: When built for a split peripheral, turn off on press, not release