feat(boards): Planck physical layout

This commit is contained in:
ReFil 2024-09-09 14:09:54 +01:00 committed by Pete Johanson
parent 026be009a6
commit 91e1a7cfef
1 changed files with 19 additions and 1 deletions

View File

@ -9,6 +9,9 @@
#include <st/f3/stm32f303c(b-c)tx-pinctrl.dtsi>
#include <dt-bindings/zmk/matrix_transform.h>
#include <layouts/common/ortho_4x12/ortho_4x12.dtsi>
/ {
model = "Plack PCD, rev6";
compatible = "planck,rev6", "st,stm32f303";
@ -17,7 +20,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zmk,kscan = &kscan0;
zmk,matrix-transform = &layout_grid_transform;
zmk,physical-layout = &layout_ortho_4x12_all1u;
};
kscan0: kscan {
@ -137,3 +140,18 @@ zephyr_udc0: &usb {
};
};
};
&layout_ortho_4x12_all1u {
status = "okay";
transform = <&layout_grid_transform>;
};
&layout_ortho_4x12_1x2u {
status = "okay";
transform = <&layout_mit_transform>;
};
&layout_ortho_4x12_2x2u {
status = "okay";
transform = <&layout_2x2u_transform>;
};