Skip to content

Commit

Permalink
add wakeup-source in under kscan
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaSaadAbdo authored Apr 24, 2024
1 parent d152ac1 commit 9e40208
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/boards/shields/asfoora/asfoora.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -29,6 +28,7 @@
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
diode-direction = "row2col";
wakeup-source;

col-gpios
= <&pro_micro 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
Expand Down
2 changes: 1 addition & 1 deletion config/boards/shields/basbousa/basbousa.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -29,6 +28,7 @@
kscan0: kscan {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN";
wakeup-source;
input-gpios =
<&pro_micro 19 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
<&pro_micro 21 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
Expand Down
3 changes: 2 additions & 1 deletion config/boards/shields/battoota/battoota.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
chosen {
zmk,kscan = &kscan_facedown;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -29,10 +28,12 @@
/omit-if-no-ref/ kscan_faceup: kscan_0 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN0";
wakeup-source;
};

/omit-if-no-ref/ kscan_facedown: kscan_1 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN1";
wakeup-source;
};
};
3 changes: 2 additions & 1 deletion config/boards/shields/battoota3/battoota3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
chosen {
zmk,kscan = &kscan_facedown;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -29,10 +28,12 @@
/omit-if-no-ref/ kscan_faceup: kscan_0 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN0";
wakeup-source;
};

/omit-if-no-ref/ kscan_facedown: kscan_1 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN1";
wakeup-source;
};
};
3 changes: 2 additions & 1 deletion config/boards/shields/berylline/berylline.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
chosen {
zmk,kscan = &kscan_faceup;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -28,10 +27,12 @@
/omit-if-no-ref/ kscan_faceup: kscan_0 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN0";
wakeup-source;
};

/omit-if-no-ref/ kscan_facedown: kscan_1 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN1";
wakeup-source;
};
};
3 changes: 2 additions & 1 deletion config/boards/shields/konafa/konafa.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
chosen {
zmk,kscan = &kscan_faceup;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -29,10 +28,12 @@
/omit-if-no-ref/ kscan_faceup: kscan_0 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN0";
wakeup-source;
};

/omit-if-no-ref/ kscan_facedown: kscan_1 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN1";
wakeup-source;
};
};
1 change: 1 addition & 0 deletions config/boards/shields/rommana/rommana.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
diode-direction = "col2row";
wakeup-source;
};

};
2 changes: 1 addition & 1 deletion config/boards/shields/wasfoora/wasfoora.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -32,6 +31,7 @@
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
diode-direction = "row2col";
wakeup-source;

col-gpios
= <&pro_micro 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
Expand Down
3 changes: 2 additions & 1 deletion config/boards/shields/wizza/wizza.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
chosen {
zmk,kscan = &kscan_facedown;
zmk,matrix_transform = &default_transform;
wakeup-source;
};

default_transform: keymap_transform_0 {
Expand All @@ -29,10 +28,12 @@
/omit-if-no-ref/ kscan_faceup: kscan_0 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN0";
wakeup-source;
};

/omit-if-no-ref/ kscan_facedown: kscan_1 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN1";
wakeup-source;
};
};
2 changes: 2 additions & 0 deletions config/boards/shields/wizzaV2/wizzav2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
/omit-if-no-ref/ kscan_faceup: kscan_0 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN0";
wakeup-source;
};

/omit-if-no-ref/ kscan_facedown: kscan_1 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN1";
wakeup-source;
};
};
2 changes: 2 additions & 0 deletions config/boards/shields/wizzades/wizzades.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
/omit-if-no-ref/ kscan_faceup: kscan_0 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN0";
wakeup-source;
};

/omit-if-no-ref/ kscan_facedown: kscan_1 {
compatible = "zmk,kscan-gpio-direct";
label = "KSCAN1";
wakeup-source;
};
};

0 comments on commit 9e40208

Please sign in to comment.