* [PATCH v1 0/1] ARM: tegra: asus-tf101: fix accelerometer mount matrix
@ 2022-10-15 17:04 Svyatoslav Ryhel
2022-10-15 17:04 ` [PATCH v1 1/1] " Svyatoslav Ryhel
0 siblings, 1 reply; 2+ messages in thread
From: Svyatoslav Ryhel @ 2022-10-15 17:04 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Thierry Reding, Jonathan Hunter
Cc: devicetree, linux-tegra, linux-kernel
Accelerometer mount matrix used in tf101 downstream is inverted.
This new matrix was generated on actual device using calibration
script, like on other transformers.
Without this patch on DE which support orientation change based on accelerometer
data display will be upside down (checked by a device owner).
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(-)
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v1 1/1] ARM: tegra: asus-tf101: fix accelerometer mount matrix
2022-10-15 17:04 [PATCH v1 0/1] ARM: tegra: asus-tf101: fix accelerometer mount matrix Svyatoslav Ryhel
@ 2022-10-15 17:04 ` Svyatoslav Ryhel
0 siblings, 0 replies; 2+ messages in thread
From: Svyatoslav Ryhel @ 2022-10-15 17:04 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Thierry Reding, Jonathan Hunter
Cc: devicetree, linux-tegra, linux-kernel
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(-)
diff --git a/arch/arm/boot/dts/tegra20-asus-tf101.dts b/arch/arm/boot/dts/tegra20-asus-tf101.dts
index 455f7e621c02..83262c790058 100644
--- a/arch/arm/boot/dts/tegra20-asus-tf101.dts
+++ b/arch/arm/boot/dts/tegra20-asus-tf101.dts
@@ -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";
};
};
};
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-15 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-15 17:04 [PATCH v1 0/1] ARM: tegra: asus-tf101: fix accelerometer mount matrix Svyatoslav Ryhel
2022-10-15 17:04 ` [PATCH v1 1/1] " Svyatoslav Ryhel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).