aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPeter Johanson <[email protected]>2024-02-08 18:44:05 +0000
committerPete Johanson <[email protected]>2024-02-09 14:32:46 -0800
commit1d83f279cddd35aabf090792449e8b8ac361fc75 (patch)
treecb0566939ee4e348e8ceb2a1fb8928a155915382
parentedc72c1166d565c30480ec895bf0aa5d7bd29d2a (diff)
downloadzmk-1d83f279cddd35aabf090792449e8b8ac361fc75.tar.gz
zmk-1d83f279cddd35aabf090792449e8b8ac361fc75.zip
fix(pm): Tweaks for deep sleep/PM.
* Restore enabling of PM_DEVICE, make ZMK_SLEEP work with the ZMK Uno shield on nrf52840dk_nrf52840 board.
-rw-r--r--app/Kconfig3
-rw-r--r--app/boards/shields/zmk_uno/boards/nrf52840dk_nrf52840.overlay3
2 files changed, 5 insertions, 1 deletions
diff --git a/app/Kconfig b/app/Kconfig
index 14456b5fe8..8155efd0ae 100644
--- a/app/Kconfig
+++ b/app/Kconfig
@@ -399,6 +399,9 @@ config ZMK_SLEEP
if ZMK_SLEEP
+config PM_DEVICE
+ default y
+
config ZMK_IDLE_SLEEP_TIMEOUT
int "Milliseconds of inactivity before entering deep sleep"
default 900000
diff --git a/app/boards/shields/zmk_uno/boards/nrf52840dk_nrf52840.overlay b/app/boards/shields/zmk_uno/boards/nrf52840dk_nrf52840.overlay
index 5ac7af7c53..05c7ed9d8e 100644
--- a/app/boards/shields/zmk_uno/boards/nrf52840dk_nrf52840.overlay
+++ b/app/boards/shields/zmk_uno/boards/nrf52840dk_nrf52840.overlay
@@ -20,5 +20,6 @@ encoder: &qdec0 {
led-pre = <0>;
steps = <80>;
pinctrl-0 = <&qdec_default>;
- pinctrl-names = "default";
+ pinctrl-1 = <&qdec_default>;
+ pinctrl-names = "default", "sleep";
};