]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Correct Joystick Axes on Gameforce Ace
authorChris Morgan <macromorgan@hotmail.com>
Tue, 10 Mar 2026 13:49:19 +0000 (08:49 -0500)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 23 Mar 2026 21:22:39 +0000 (22:22 +0100)
The Gameforce Ace's joystick axes were set incorrectly initially,
getting the X/Y and RX/RY axes backwards. Additionally, correct the
RY axis so that it is inverted.

All axes tested with evtest and outputting correct values.

Fixes: 4e946c447a04 ("arm64: dts: rockchip: Add GameForce Ace")
Reported-by: sydarn <sydarn@proton.me>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://patch.msgid.link/20260310134919.550023-1-macroalpha82@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-gameforce-ace.dts

index 59d2494c451001f0db963feb352bce1985d48a70..89618394c0bfb4c0da83860670c376e268925f4b 100644 (file)
@@ -60,8 +60,8 @@
                        reg = <0>;
                        abs-flat = <40>;
                        abs-fuzz = <30>;
-                       abs-range = <0 4095>;
-                       linux,code = <ABS_RX>;
+                       abs-range = <4095 0>;
+                       linux,code = <ABS_RY>;
                };
 
                axis@1 {
@@ -69,7 +69,7 @@
                        abs-flat = <40>;
                        abs-fuzz = <30>;
                        abs-range = <0 4095>;
-                       linux,code = <ABS_RY>;
+                       linux,code = <ABS_RX>;
                };
 
                axis@2 {
@@ -77,7 +77,7 @@
                        abs-flat = <40>;
                        abs-fuzz = <30>;
                        abs-range = <0 4095>;
-                       linux,code = <ABS_Y>;
+                       linux,code = <ABS_X>;
                };
 
                axis@3 {
@@ -85,7 +85,7 @@
                        abs-flat = <40>;
                        abs-fuzz = <30>;
                        abs-range = <0 4095>;
-                       linux,code = <ABS_X>;
+                       linux,code = <ABS_Y>;
                };
        };