Skip to contentSkip to conversation

TF101 accel matrix fix

PATCH New Svyatoslav Ryhel 1 participant 2 messages Dec 13, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover TF101 accel matrix fix

Accel matrix in device tree was taken from downstream and is inverted. This new matrix is generated directly on a device and works correctly.

Svyatoslav Ryhel (1):
ARM: tegra: asus-tf101: fix accelerometer mount matrix

 arch/arm/boot/dts/tegra20-asus-tf101.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.37.2
#1 lore raw

PATCH v2 1/1 ARM: tegra: asus-tf101: fix accelerometer mount matrix

Accelerometer mount matrix used in tf101 downstream is inverted. This new matrix was generated on actual device using calibration script, like on other transformers.

---
 arch/arm/boot/dts/tegra20-asus-tf101.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/tegra20-asus-tf101.dts +3 -3
index 455f7e621c02..83262c790058 100644
@@ -591,9 +591,9 @@ accelerometer@f {
 					vdd-supply = <&vdd_1v8_sys>;
 					vddio-supply = <&vdd_1v8_sys>;
 
-					mount-matrix =	 "1",  "0",  "0",
-							 "0",  "1",  "0",
-							 "0",  "0",  "1";
+					mount-matrix =	"-1",  "0",  "0",
+							 "0", "-1",  "0",
+							 "0",  "0", "-1";
 				};
 			};
 		};
Signature · 1 line
2.37.2