feat(boards): add physical layout for reviung34 (#3351)

* feat(boards): add physical layout for reviung34

Add physical layout support for the REVIUNG34 keyboard:
- Dual 1U (34-key) layout
- Single 2U (33-key) layout
- Position map for layout switching

Coordinates extracted from the original KiCad PCB (gtips/reviung).
Closes #2536

* Update app/boards/shields/reviung34/reviung34-layouts.dtsi

Co-authored-by: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com>

* Update app/boards/shields/reviung34/reviung34-layouts.dtsi

Co-authored-by: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com>

* Update app/boards/shields/reviung34/reviung34-layouts.dtsi

Co-authored-by: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com>

* Update app/boards/shields/reviung34/reviung34-layouts.dtsi

Co-authored-by: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com>

* Update app/boards/shields/reviung34/reviung34-layouts.dtsi

Co-authored-by: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com>

* fix: wrap negative numbers in parentheses for DTS syntax

---------

Co-authored-by: Nicolas Munnich <98408764+nmunnich@users.noreply.github.com>
This commit is contained in:
yekingyan 2026-06-20 12:25:02 +08:00 committed by GitHub
parent ff09f2d0c9
commit 0a6c6a1856
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 125 additions and 1 deletions

View file

@ -6,10 +6,20 @@
#include <dt-bindings/zmk/matrix_transform.h>
#include "reviung34-layouts.dtsi"
&reviung34_dual_1u_layout {
transform = <&dual_1u_transform>;
};
&reviung34_single_2u_layout {
transform = <&single_2u_transform>;
};
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix-transform = &dual_1u_transform;
zmk,physical-layout = &reviung34_dual_1u_layout;
};
dual_1u_transform: keymap_transform_0 {