Skip to content

Commit

Permalink
refactor: use zmk,matrix-transform instead of zmk,matrix_transform
Browse files Browse the repository at this point in the history
* Align codebase with documentation.
  • Loading branch information
lesshonor authored and joelspadin committed Jan 24, 2024
1 parent a3fbc2a commit 6b54701
Show file tree
Hide file tree
Showing 76 changed files with 90 additions and 90 deletions.
2 changes: 1 addition & 1 deletion app/boards/arm/adv360pro/adv360pro.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
zmk,kscan = &kscan0;
zmk,backlight = &backlight;
zmk,battery = &vbatt;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
zmk,underglow = &led_strip;
};

Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/bt60/bt60.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
zephyr,console = &cdc_acm_uart;
zmk,battery = &vbatt;
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

sensors: sensors {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/bt60/bt60_v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
};

ansi_transform: keymap_transform_0 {
Expand Down
10 changes: 5 additions & 5 deletions app/boards/arm/bt60/bt60_v1.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
/ {
chosen {
#ifdef ANSI
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
#elif defined(HHKB)
zmk,matrix_transform = &hhkb_transform;
zmk,matrix-transform = &hhkb_transform;
#elif defined(ISO)
zmk,matrix_transform = &iso_transform;
zmk,matrix-transform = &iso_transform;
#elif defined(ALL_1U)
zmk,matrix_transform = &all_1u_transform;
zmk,matrix-transform = &all_1u_transform;
#else
zmk,matrix_transform = &split_transform;
zmk,matrix-transform = &split_transform;
#endif
};

Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/bt60/bt60_v1_hs.dts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/ckp/bt60_v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
compatible = "polarityworks,bt60_v2";

chosen {
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
};


Expand Down
8 changes: 4 additions & 4 deletions app/boards/arm/ckp/bt60_v2.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
/ {
chosen {
#ifdef ANSI
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
#elif defined(ISO)
zmk,matrix_transform = &iso_transform;
zmk,matrix-transform = &iso_transform;
#elif defined(ALL_1U)
zmk,matrix_transform = &all_1u_transform;
zmk,matrix-transform = &all_1u_transform;
#elif defined(HHKB)
zmk,matrix_transform = &hhkb_transform;
zmk,matrix-transform = &hhkb_transform;
#else
#error "Layout not defined, please define a layout by uncommenting the appropriate line in bt60_v2.keymap"
#endif
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/ckp/bt65_v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
compatible = "polarityworks,bt65_v1";

chosen {
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
};


Expand Down
8 changes: 4 additions & 4 deletions app/boards/arm/ckp/bt65_v1.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
/ {
chosen {
#ifdef ANSI
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
#elif defined(ISO)
zmk,matrix_transform = &iso_transform;
zmk,matrix-transform = &iso_transform;
#elif defined(ALL_1U)
zmk,matrix_transform = &all_1u_transform;
zmk,matrix-transform = &all_1u_transform;
#elif defined(HHKB)
zmk,matrix_transform = &hhkb_transform;
zmk,matrix-transform = &hhkb_transform;
#else
#error "Layout not defined, please define a layout by uncommenting the appropriate line in bt65_v1.keymap"
#endif
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/ckp/bt75_v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
compatible = "polarityworks,bt75_v1";

chosen {
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
};


Expand Down
6 changes: 3 additions & 3 deletions app/boards/arm/ckp/bt75_v1.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
/ {
chosen {
#ifdef ANSI
zmk,matrix_transform = &ansi_transform;
zmk,matrix-transform = &ansi_transform;
#elif defined(ISO)
zmk,matrix_transform = &iso_transform;
zmk,matrix-transform = &iso_transform;
#elif defined(ALL_1U)
zmk,matrix_transform = &all_1u_transform;
zmk,matrix-transform = &all_1u_transform;
#else
#error "Layout not defined, please define a layout using by uncommenting the appropriate line in bt75_v1.keymap"
#endif
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/corneish_zen/corneish_zen.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
zmk,kscan = &kscan0;
zmk,display = &epd;
zephyr,console = &cdc_acm_uart;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
4 changes: 2 additions & 2 deletions app/boards/arm/corneish_zen/corneish_zen.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

/ {
chosen {
zmk,matrix_transform = &default_transform;
// zmk,matrix_transform = &five_column_transform;
zmk,matrix-transform = &default_transform;
// zmk,matrix-transform = &five_column_transform;
};
};

Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/dz60rgb/dz60rgb_rev1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
zephyr,flash = &flash0;
zephyr,console = &cdc_acm_uart;
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/ferris/ferris_rev02.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
zephyr,flash = &flash0;
zephyr,console = &cdc_acm_uart;
zmk,kscan = &kscan;
zmk,matrix_transform = &transform;
zmk,matrix-transform = &transform;
/* TODO: Enable once we support the IC for underglow
zmk,underglow = &led_strip;
*/
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/glove80/glove80.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
zephyr,code-partition = &code_partition;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/kbdfans_tofu65/kbdfans_tofu65_v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
zephyr,shell-uart = &cdc_acm_uart;
zephyr,code-partition = &code_partition;
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

xtal_clk: xtal-clk {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/nice60/nice60.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
zephyr,console = &cdc_acm_uart;
zmk,battery = &vbatt;
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
zmk,underglow = &led_strip;
};

Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/planck/planck_rev6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
zephyr,flash = &flash0;
zephyr,console = &cdc_acm_uart;
zmk,kscan = &kscan0;
zmk,matrix_transform = &layout_grid_transform;
zmk,matrix-transform = &layout_grid_transform;
};

kscan0: kscan {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/preonic/preonic_rev3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zmk,kscan = &kscan0;
zmk,matrix_transform = &layout_grid_transform;
zmk,matrix-transform = &layout_grid_transform;
};

kscan0: kscan_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/preonic/preonic_rev3.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define RAISE 2

/ {
chosen { zmk,matrix_transform = &layout_grid_transform; };
chosen { zmk,matrix-transform = &layout_grid_transform; };
keymap {
compatible = "zmk,keymap";
default_layer {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/arm/s40nc/s40nc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
zephyr,console = &cdc_acm_uart;
zmk,battery = &vbatt;
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/a_dux/a_dux.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/bat43/bat43.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/bfo9000/bfo9000.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/chalice/chalice.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};


Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/clog/clog.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/corne/corne.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
chosen {
zephyr,display = &oled;
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/cradio/cradio.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/eek/eek.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/elephant42/elephant42.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/ergodash/ergodash.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/eternal_keypad/eternal_keypad.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

kscan0: kscan {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/eternal_keypad/eternal_keypad.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

keymap {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

keymap {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/fourier/fourier.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

/*
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/helix/helix.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/hummingbird/hummingbird.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
/delete-property/ zephyr,console;
/delete-property/ zephyr,shell-uart;
};
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/iris/iris.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
2 changes: 1 addition & 1 deletion app/boards/shields/jian/jian.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
Expand Down
Loading

0 comments on commit 6b54701

Please sign in to comment.