Skip to content

Commit

Permalink
update overlays, dtsi
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlucachi authored Jan 11, 2025
1 parent 4b0811a commit d59d5a9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
9 changes: 0 additions & 9 deletions config/boards/shields/totem/totem.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,6 @@
};

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";

diode-direction = "col2row";
row-gpios
= <&xiao_d 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
};
24 changes: 17 additions & 7 deletions config/boards/shields/totem/totem_left.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,21 @@
#include "totem.dtsi"

&kscan0 {
col-gpios
= <&xiao_d 4 GPIO_ACTIVE_HIGH>
, <&xiao_d 5 GPIO_ACTIVE_HIGH>
, <&xiao_d 10 GPIO_ACTIVE_HIGH>
, <&xiao_d 9 GPIO_ACTIVE_HIGH>
, <&xiao_d 8 GPIO_ACTIVE_HIGH>
;
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

col-gpios
= <&xiao_d 4 GPIO_ACTIVE_HIGH>
, <&xiao_d 5 GPIO_ACTIVE_HIGH>
, <&xiao_d 10 GPIO_ACTIVE_HIGH>
, <&xiao_d 9 GPIO_ACTIVE_HIGH>
, <&xiao_d 8 GPIO_ACTIVE_HIGH>
;

row-gpios
= <&xiao_d 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
10 changes: 10 additions & 0 deletions config/boards/shields/totem/totem_right.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@
};

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

col-gpios
= <&xiao_d 8 GPIO_ACTIVE_HIGH>
, <&xiao_d 9 GPIO_ACTIVE_HIGH>
, <&xiao_d 10 GPIO_ACTIVE_HIGH>
, <&xiao_d 5 GPIO_ACTIVE_HIGH>
, <&xiao_d 4 GPIO_ACTIVE_HIGH>
;

row-gpios
= <&xiao_d 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};

0 comments on commit d59d5a9

Please sign in to comment.