[v3,3/4] ARM: tegra: asus-tf101: fix accelerometer mount matrix

Message ID 20230329090403.5274-4-clamor95@gmail.com
State New
Headers
Series Tegra DTS improvements |

Commit Message

Svyatoslav Ryhel March 29, 2023, 9:04 a.m. UTC
  Accelerometer mount matrix used in tf101 downstream is inverted.
This new matrix was generated on actual device using calibration
script, like on other transformers.

Tested-by: Robert Eckelmann <longnoserob@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 arch/arm/boot/dts/tegra20-asus-tf101.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Comments

Thierry Reding April 4, 2023, 1:33 p.m. UTC | #1
From: Thierry Reding <treding@nvidia.com>

On Wed, 29 Mar 2023 12:04:02 +0300, Svyatoslav Ryhel wrote:
> Accelerometer mount matrix used in tf101 downstream is inverted.
> This new matrix was generated on actual device using calibration
> script, like on other transformers.
> 
> 

Applied, thanks!

[3/4] ARM: tegra: asus-tf101: fix accelerometer mount matrix
      (no commit info)

Best regards,
  

Patch

diff --git a/arch/arm/boot/dts/tegra20-asus-tf101.dts b/arch/arm/boot/dts/tegra20-asus-tf101.dts
index 7b2969656ec9..dcb231f6e42d 100644
--- a/arch/arm/boot/dts/tegra20-asus-tf101.dts
+++ b/arch/arm/boot/dts/tegra20-asus-tf101.dts
@@ -577,9 +577,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";
 				};
 			};
 		};