Skip to content

Commit

Permalink
fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP.
Browse files Browse the repository at this point in the history
* ZMK_SLEEP also enables PM_DEVICE, so be sure to mark kscan
  nodes as wakeup sources so they can wake keyboards from sleep.
  • Loading branch information
petejohanson committed Mar 29, 2024
1 parent d672b0c commit 80b6424
Show file tree
Hide file tree
Showing 77 changed files with 114 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/boards/arm/adv360pro/adv360pro_left.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/{
kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/adv360pro/adv360pro_right.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/{
kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/arm/bt60/bt60_v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

col-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/arm/bt60/bt60_v1_hs.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

col-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/arm/ckp/ckp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/corneish_zen/corneish_zen_v1_left.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/corneish_zen/corneish_zen_v1_right.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/corneish_zen/corneish_zen_v2_left.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/corneish_zen/corneish_zen_v2_right.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/arm/glove80/glove80.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
debounce-press-ms = <4>;
debounce-release-ms = <20>;
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/nice60/nice60.dts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,5) R

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/s40nc/s40nc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/a_dux/a_dux.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-direct";
wakeup-source;

input-gpios =
<&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
<&pro_micro 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/bat43/bat43.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(6,0) RC(6,1) RC(6,2)

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "col2row";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/bfo9000/bfo9000.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/boardsource3x4/boardsource3x4.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/boardsource5x12/boardsource5x12.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/chalice/chalice.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/clog/clog.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-direct";
wakeup-source;

input-gpios
= <&pro_micro 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/contra/contra.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/corne/corne.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/cradio/cradio.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-direct";
wakeup-source;

input-gpios
= <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&pro_micro 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/crbn/crbn.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

col-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/eek/eek.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/elephant42/elephant42.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7)

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/ergodash/ergodash.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,13) RC(4,12

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/eternal_keypad/eternal_keypad.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/fourier/fourier.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) /**/ RC(3,6) RC(3,9

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/helix/helix.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,7) RC(4,8) RC(4,9

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/hummingbird/hummingbird.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "row2col";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/iris/iris.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,2) RC(4,9) RC(3,6) RC(3,7)

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/jian/jian.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/jiran/jiran.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/jorne/jorne.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
2 changes: 2 additions & 0 deletions app/boards/shields/knob_goblin/knob_goblin.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/kyria/kyria_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
};
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/leeloo/leeloo_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/leeloo_micro/leeloo_micro.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(3,4) RC(3,5) RC(2,5) RC(2,6) RC(2,7)

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";

Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/lily58/lily58.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/lotus58/lotus58.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/m60/m60.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/microdox/microdox.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/ {
kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "col2row";
row-gpios
= <&pro_micro 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/microdox/microdox_v2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/ {
kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "col2row";
};
};
1 change: 1 addition & 0 deletions app/boards/shields/murphpad/murphpad.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

diode-direction = "col2row";
row-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/naked60/naked60.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "col2row";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/osprette/osprette.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RC(0,0) RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8)

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "row2col";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/pancake/pancake.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "col2row";

col-gpios
Expand Down
1 change: 1 addition & 0 deletions app/boards/shields/qaz/qaz.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;
diode-direction = "col2row";

col-gpios
Expand Down
Loading

0 comments on commit 80b6424

Please sign in to comment.