summaryrefslogtreecommitdiffstats
path: root/zmk/boards/shields
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2024-09-26 12:36:45 +0200
committertv <tv@krebsco.de>2024-11-06 19:38:58 +0100
commit4a3cddf9741c6c26cdf9c06052faf5bed305f781 (patch)
tree537eb9d21ce176152d3a287050079005da73ef97 /zmk/boards/shields
parent6993d529c7e54ff43886231c8187282cd33fe1f5 (diff)
zmk: initHEADmaster
Diffstat (limited to 'zmk/boards/shields')
-rw-r--r--zmk/boards/shields/hanck/Kconfig.defconfig23
-rw-r--r--zmk/boards/shields/hanck/Kconfig.shield8
-rw-r--r--zmk/boards/shields/hanck/hanck_duo.conf6
-rw-r--r--zmk/boards/shields/hanck/hanck_duo.dtsi43
-rw-r--r--zmk/boards/shields/hanck/hanck_duo.zmk.yml11
-rw-r--r--zmk/boards/shields/hanck/hanck_duo_left.conf6
-rw-r--r--zmk/boards/shields/hanck/hanck_duo_left.overlay1
-rw-r--r--zmk/boards/shields/hanck/hanck_duo_right.conf4
-rw-r--r--zmk/boards/shields/hanck/hanck_duo_right.overlay5
-rw-r--r--zmk/boards/shields/hanck/hanck_solo.conf4
-rw-r--r--zmk/boards/shields/hanck/hanck_solo.dtsi42
-rw-r--r--zmk/boards/shields/hanck/hanck_solo.overlay1
-rw-r--r--zmk/boards/shields/hanck/hanck_solo.zmk.yml10
13 files changed, 164 insertions, 0 deletions
diff --git a/zmk/boards/shields/hanck/Kconfig.defconfig b/zmk/boards/shields/hanck/Kconfig.defconfig
new file mode 100644
index 0000000..6672468
--- /dev/null
+++ b/zmk/boards/shields/hanck/Kconfig.defconfig
@@ -0,0 +1,23 @@
+if SHIELD_HANCK_SOLO
+
+config ZMK_KEYBOARD_NAME
+ default "hanck_solo"
+
+endif
+
+if SHIELD_HANCK_DUO_LEFT
+
+config ZMK_KEYBOARD_NAME
+ default "HANCK_DUO"
+
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
+endif
+
+if SHIELD_HANCK_DUO_LEFT || SHIELD_HANCK_DUO_RIGHT
+
+config ZMK_SPLIT
+ default y
+
+endif
diff --git a/zmk/boards/shields/hanck/Kconfig.shield b/zmk/boards/shields/hanck/Kconfig.shield
new file mode 100644
index 0000000..b9bdf10
--- /dev/null
+++ b/zmk/boards/shields/hanck/Kconfig.shield
@@ -0,0 +1,8 @@
+config SHIELD_HANCK_SOLO
+ def_bool $(shields_list_contains,hanck_solo)
+
+config SHIELD_HANCK_DUO_LEFT
+ def_bool $(shields_list_contains,hanck_duo_left)
+
+config SHIELD_HANCK_DUO_RIGHT
+ def_bool $(shields_list_contains,hanck_duo_right)
diff --git a/zmk/boards/shields/hanck/hanck_duo.conf b/zmk/boards/shields/hanck/hanck_duo.conf
new file mode 100644
index 0000000..03b809f
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_duo.conf
@@ -0,0 +1,6 @@
+CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
+CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6
+CONFIG_BT_PERIPHERAL_PREF_MAX_INT=12
+CONFIG_ZMK_BATTERY_REPORT_INTERVAL=600
+CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
+CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
diff --git a/zmk/boards/shields/hanck/hanck_duo.dtsi b/zmk/boards/shields/hanck/hanck_duo.dtsi
new file mode 100644
index 0000000..a3140f2
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_duo.dtsi
@@ -0,0 +1,43 @@
+#include <dt-bindings/zmk/matrix_transform.h>
+
+/ {
+ chosen {
+ zmk,kscan = &kscan0;
+ zmk,matrix_transform = &default_transform;
+ };
+
+ default_transform: keymap_transform_0 {
+ compatible = "zmk,matrix-transform";
+ columns = <12>;
+ rows = <4>;
+
+ map = <
+ RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11)
+ 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) RC(1,9) RC(1,10) RC(1,11)
+ RC(2,0) 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) RC(2,11)
+ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11)
+ >;
+ };
+
+ kscan0: kscan {
+ compatible = "zmk,kscan-gpio-matrix";
+ label = "KSCAN";
+
+ diode-direction = "col2row";
+ row-gpios
+ = <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ ;
+
+ col-gpios
+ = <&pro_micro 19 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 18 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 15 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 14 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 16 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 10 GPIO_ACTIVE_HIGH>
+ ;
+ };
+};
diff --git a/zmk/boards/shields/hanck/hanck_duo.zmk.yml b/zmk/boards/shields/hanck/hanck_duo.zmk.yml
new file mode 100644
index 0000000..0216043
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_duo.zmk.yml
@@ -0,0 +1,11 @@
+file_format: "1"
+id: hanck_duo
+name: HANCK_DUO
+type: shield
+url: https://cgit.krebsco.de/hanck
+requires: [pro_micro]
+features:
+ - keys
+siblings:
+ - hanck_duo_left
+ - hanck_duo_right
diff --git a/zmk/boards/shields/hanck/hanck_duo_left.conf b/zmk/boards/shields/hanck/hanck_duo_left.conf
new file mode 100644
index 0000000..03b809f
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_duo_left.conf
@@ -0,0 +1,6 @@
+CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
+CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6
+CONFIG_BT_PERIPHERAL_PREF_MAX_INT=12
+CONFIG_ZMK_BATTERY_REPORT_INTERVAL=600
+CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
+CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
diff --git a/zmk/boards/shields/hanck/hanck_duo_left.overlay b/zmk/boards/shields/hanck/hanck_duo_left.overlay
new file mode 100644
index 0000000..40d40df
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_duo_left.overlay
@@ -0,0 +1 @@
+#include "hanck_duo.dtsi"
diff --git a/zmk/boards/shields/hanck/hanck_duo_right.conf b/zmk/boards/shields/hanck/hanck_duo_right.conf
new file mode 100644
index 0000000..152f333
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_duo_right.conf
@@ -0,0 +1,4 @@
+CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
+CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6
+CONFIG_BT_PERIPHERAL_PREF_MAX_INT=12
+CONFIG_ZMK_BATTERY_REPORT_INTERVAL=600
diff --git a/zmk/boards/shields/hanck/hanck_duo_right.overlay b/zmk/boards/shields/hanck/hanck_duo_right.overlay
new file mode 100644
index 0000000..38c686c
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_duo_right.overlay
@@ -0,0 +1,5 @@
+#include "hanck_duo.dtsi"
+
+&default_transform {
+ col-offset = <6>;
+};
diff --git a/zmk/boards/shields/hanck/hanck_solo.conf b/zmk/boards/shields/hanck/hanck_solo.conf
new file mode 100644
index 0000000..152f333
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_solo.conf
@@ -0,0 +1,4 @@
+CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
+CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6
+CONFIG_BT_PERIPHERAL_PREF_MAX_INT=12
+CONFIG_ZMK_BATTERY_REPORT_INTERVAL=600
diff --git a/zmk/boards/shields/hanck/hanck_solo.dtsi b/zmk/boards/shields/hanck/hanck_solo.dtsi
new file mode 100644
index 0000000..d76d96e
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_solo.dtsi
@@ -0,0 +1,42 @@
+#include <dt-bindings/zmk/matrix_transform.h>
+
+/ {
+ chosen {
+ zmk,kscan = &kscan0;
+ zmk,matrix_transform = &default_transform;
+ };
+
+ default_transform: keymap_transform_0 {
+ compatible = "zmk,matrix-transform";
+ columns = <6>;
+ rows = <4>;
+
+ map = <
+ RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5)
+ RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5)
+ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5)
+ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5)
+ >;
+ };
+
+ kscan0: kscan {
+ compatible = "zmk,kscan-gpio-matrix";
+
+ diode-direction = "col2row";
+ row-gpios
+ = <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ , <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
+ ;
+
+ col-gpios
+ = <&pro_micro 19 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 18 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 15 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 14 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 16 GPIO_ACTIVE_HIGH>
+ , <&pro_micro 10 GPIO_ACTIVE_HIGH>
+ ;
+ };
+};
diff --git a/zmk/boards/shields/hanck/hanck_solo.overlay b/zmk/boards/shields/hanck/hanck_solo.overlay
new file mode 100644
index 0000000..d358fae
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_solo.overlay
@@ -0,0 +1 @@
+#include "hanck_solo.dtsi"
diff --git a/zmk/boards/shields/hanck/hanck_solo.zmk.yml b/zmk/boards/shields/hanck/hanck_solo.zmk.yml
new file mode 100644
index 0000000..57950c5
--- /dev/null
+++ b/zmk/boards/shields/hanck/hanck_solo.zmk.yml
@@ -0,0 +1,10 @@
+file_format: "1"
+id: hanck_solo
+name: HANCK_SOLO
+type: shield
+url: https://cgit.krebso.de/hanck
+requires: [pro_micro]
+features:
+ - keys
+siblings:
+ - hanck_solo