feat(boards): CKP physical layout

This commit is contained in:
ReFil
2024-09-26 14:22:47 +01:00
committed by Pete Johanson
parent a8f7888f4d
commit 026be009a6
6 changed files with 72 additions and 14 deletions

View File

@@ -6,6 +6,7 @@
/dts-v1/; /dts-v1/;
#include "ckp.dtsi" #include "ckp.dtsi"
#include <layouts/common/60percent/60percent.dtsi>
/ { / {
@@ -13,7 +14,7 @@
compatible = "polarityworks,bt60_v2"; compatible = "polarityworks,bt60_v2";
chosen { chosen {
zmk,matrix-transform = &ansi_transform; zmk,physical-layout = &layout_60_ansi;
}; };
@@ -69,3 +70,23 @@
>; >;
}; };
}; };
&layout_60_ansi {
status = "okay";
transform = <&ansi_transform>;
};
&layout_60_iso {
status = "okay";
transform = <&iso_transform>;
};
&layout_60_all1u {
status = "okay";
transform = <&all_1u_transform>;
};
&layout_60_hhkb {
status = "okay";
transform = <&hhkb_transform>;
};

View File

@@ -12,13 +12,13 @@
/ { / {
chosen { chosen {
#ifdef ANSI #ifdef ANSI
zmk,matrix-transform = &ansi_transform; zmk,physical-layout = &layout_60_ansi;
#elif defined(ISO) #elif defined(ISO)
zmk,matrix-transform = &iso_transform; zmk,physical-layout = &layout_60_iso;
#elif defined(ALL_1U) #elif defined(ALL_1U)
zmk,matrix-transform = &all_1u_transform; zmk,physical-layout = &layout_60_all1u;
#elif defined(HHKB) #elif defined(HHKB)
zmk,matrix-transform = &hhkb_transform; zmk,physical-layout = &layout_60_hhkb;
#else #else
#error "Layout not defined, please define a layout by uncommenting the appropriate line in bt60_v2.keymap" #error "Layout not defined, please define a layout by uncommenting the appropriate line in bt60_v2.keymap"
#endif #endif

View File

@@ -6,6 +6,7 @@
/dts-v1/; /dts-v1/;
#include "ckp.dtsi" #include "ckp.dtsi"
#include <layouts/common/65percent/65percent.dtsi>
/ { / {
@@ -13,7 +14,7 @@
compatible = "polarityworks,bt65_v1"; compatible = "polarityworks,bt65_v1";
chosen { chosen {
zmk,matrix-transform = &ansi_transform; zmk,physical-layout = &layout_65_ansi;
}; };
@@ -69,3 +70,23 @@
>; >;
}; };
}; };
&layout_65_ansi {
status = "okay";
transform = <&ansi_transform>;
};
&layout_65_iso {
status = "okay";
transform = <&iso_transform>;
};
&layout_65_all1u {
status = "okay";
transform = <&all_1u_transform>;
};
&layout_65_hhkb {
status = "okay";
transform = <&hhkb_transform>;
};

View File

@@ -12,13 +12,13 @@
/ { / {
chosen { chosen {
#ifdef ANSI #ifdef ANSI
zmk,matrix-transform = &ansi_transform; zmk,physical-layout = &layout_65_ansi;
#elif defined(ISO) #elif defined(ISO)
zmk,matrix-transform = &iso_transform; zmk,physical-layout = &layout_65_iso;
#elif defined(ALL_1U) #elif defined(ALL_1U)
zmk,matrix-transform = &all_1u_transform; zmk,physical-layout = &layout_65_all1u;
#elif defined(HHKB) #elif defined(HHKB)
zmk,matrix-transform = &hhkb_transform; zmk,physical-layout = &layout_65_hhkb;
#else #else
#error "Layout not defined, please define a layout by uncommenting the appropriate line in bt65_v1.keymap" #error "Layout not defined, please define a layout by uncommenting the appropriate line in bt65_v1.keymap"
#endif #endif

View File

@@ -6,6 +6,7 @@
/dts-v1/; /dts-v1/;
#include "ckp.dtsi" #include "ckp.dtsi"
#include <layouts/common/75percent/75percent.dtsi>
/ { / {
@@ -13,7 +14,7 @@
compatible = "polarityworks,bt75_v1"; compatible = "polarityworks,bt75_v1";
chosen { chosen {
zmk,matrix-transform = &ansi_transform; zmk,physical-layout = &layout_75_ansi;
}; };
@@ -59,3 +60,18 @@
>; >;
}; };
}; };
&layout_75_ansi {
status = "okay";
transform = <&ansi_transform>;
};
&layout_75_iso {
status = "okay";
transform = <&iso_transform>;
};
&layout_75_all1u {
status = "okay";
transform = <&all_1u_transform>;
};

View File

@@ -11,11 +11,11 @@
/ { / {
chosen { chosen {
#ifdef ANSI #ifdef ANSI
zmk,matrix-transform = &ansi_transform; zmk,physical-layout = &layout_75_ansi;
#elif defined(ISO) #elif defined(ISO)
zmk,matrix-transform = &iso_transform; zmk,physical-layout = &layout_75_iso;
#elif defined(ALL_1U) #elif defined(ALL_1U)
zmk,matrix-transform = &all_1u_transform; zmk,physical-layout = &layout_75_all1u;
#else #else
#error "Layout not defined, please define a layout using by uncommenting the appropriate line in bt75_v1.keymap" #error "Layout not defined, please define a layout using by uncommenting the appropriate line in bt75_v1.keymap"
#endif #endif