]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: tegra: tf600t: Invert accelerometer calibration matrix
authorSvyatoslav Ryhel <clamor95@gmail.com>
Mon, 11 May 2026 07:48:59 +0000 (10:48 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 29 May 2026 12:36:18 +0000 (14:36 +0200)
IMU calibration matrix used in the device tree is inverted when testing on
the device which results in wrong screen orientation. Invert it to match
the matrix dumped from the device.

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/nvidia/tegra30-asus-tf600t.dts

index 0bebea0cb8c48d077c9706e9bfc3ac041beaf11e..5c634b0f3f46adfe698611dbeddf184cccd7fc2b 100644 (file)
                        vdd-supply   = <&vdd_3v3_sys>;
                        vddio-supply = <&vdd_1v8_vio>;
 
-                       mount-matrix =   "0", "-1",  "0",
-                                       "-1",  "0",  "0",
-                                        "0",  "0", "-1";
+                       mount-matrix =   "0",  "1",  "0",
+                                        "1",  "0",  "0",
+                                        "0",  "0",  "1";
 
                        /* External I2C interface */
                        i2c-gate {