From: Greg Kroah-Hartman Date: Fri, 6 Dec 2024 09:42:27 +0000 (+0100) Subject: 5.10-stable patches X-Git-Tag: v6.6.64~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a071b8971c6ed30742fb99dd0674a5d1db8ab381;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: arm64-dts-allwinner-pinephone-add-mount-matrix-to-accelerometer.patch --- diff --git a/queue-5.10/arm64-dts-allwinner-pinephone-add-mount-matrix-to-accelerometer.patch b/queue-5.10/arm64-dts-allwinner-pinephone-add-mount-matrix-to-accelerometer.patch new file mode 100644 index 00000000000..a43117a0d7c --- /dev/null +++ b/queue-5.10/arm64-dts-allwinner-pinephone-add-mount-matrix-to-accelerometer.patch @@ -0,0 +1,45 @@ +From 2496b2aaacf137250f4ca449f465e2cadaabb0e8 Mon Sep 17 00:00:00 2001 +From: Dragan Simic +Date: Thu, 19 Sep 2024 21:15:26 +0200 +Subject: arm64: dts: allwinner: pinephone: Add mount matrix to accelerometer + +From: Dragan Simic + +commit 2496b2aaacf137250f4ca449f465e2cadaabb0e8 upstream. + +The way InvenSense MPU-6050 accelerometer is mounted on the user-facing side +of the Pine64 PinePhone mainboard, which makes it rotated 90 degrees counter- +clockwise, [1] requires the accelerometer's x- and y-axis to be swapped, and +the direction of the accelerometer's y-axis to be inverted. + +Rectify this by adding a mount-matrix to the accelerometer definition in the +Pine64 PinePhone dtsi file. + +[1] https://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf + +Fixes: 91f480d40942 ("arm64: dts: allwinner: Add initial support for Pine64 PinePhone") +Cc: stable@vger.kernel.org +Suggested-by: Ondrej Jirman +Suggested-by: Andrey Skvortsov +Signed-off-by: Dragan Simic +Reviewed-by: Andrey Skvortsov +Link: https://patch.msgid.link/129f0c754d071cca1db5d207d9d4a7bd9831dff7.1726773282.git.dsimic@manjaro.org +[wens@csie.org: Replaced Helped-by with Suggested-by] +Signed-off-by: Chen-Yu Tsai +Signed-off-by: Greg Kroah-Hartman +--- + arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +@@ -157,6 +157,9 @@ + interrupts = <7 5 IRQ_TYPE_EDGE_RISING>; /* PH5 */ + vdd-supply = <®_dldo1>; + vddio-supply = <®_dldo1>; ++ mount-matrix = "0", "1", "0", ++ "-1", "0", "0", ++ "0", "0", "1"; + }; + }; + diff --git a/queue-5.10/series b/queue-5.10/series index 86b2755d9eb..d5b85537e8a 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -1,3 +1,4 @@ +arm64-dts-allwinner-pinephone-add-mount-matrix-to-accelerometer.patch netlink-terminate-outstanding-dump-on-socket-close.patch net-mlx5-fs-lock-fte-when-checking-if-active.patch net-mlx5e-ktls-fix-incorrect-page-refcounting.patch