From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C00CD377ABA; Sat, 12 Sep 2026 18:53:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789239185; cv=none; b=BgPt2gBN8PW34iSzc6rEJStW/ENfJsXsz1AU330iD/VVH+re/mKjts1bfGeYzXuEmjB+iyA//a6LzUz7L/3hdErHvQiPLWamoOIg+0/WiFuInSU/gmXouQARO+Ivp42T2B3Atd2O9h85pCVAGMs4r1l3Om5/vJ4anE7re1kXPh4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789239185; c=relaxed/simple; bh=nyR+Ao5+yskZHYNgeIbcrdnoZ/SIkwCNzk3iUktyMpQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=shu9l7106jQwP7SVv0zruvJgQR/8M5CMCV9qneI1AVKS3UVLbdmeNUV/KTQW9ryKCeV9dxVX1oKQ/pCIXHoKrHYd9hX/8RtsIoSXyiJCmlgX0MAUhBUgbpBeyqBM0Avr08PvDKSFzo1YmfI3+Dbo83C9euaky2aySIewhNadF98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MruqPlNy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MruqPlNy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCDF11F00893; Sat, 12 Sep 2026 18:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789239184; bh=u2m0DUbvolqdV+XlltBcWJQryD9YWuw0LyTTrkuxFrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MruqPlNyKB3GCsXNE/UsIG/Jh9sSIoquCG/xsW7SfWSQXY1I1B2ghuj4gAF7UdQ7u 6Gb/n80J51YorLzHPVvWO6QbIR0T1/YS9Ojzn22YZl1th2YQpEmzfQKMpRPPJ+u8Gb TmRg0JcDK+u3C2ZGOFZR6MkHUUzFOiVgdzeCpVZk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ondrej Jirman , Chen-Yu Tsai , Sasha Levin Subject: [PATCH 5.15 612/935] arm64: dts: allwinner: sun50i-a64-pinephone: Fix mpu6050 mount matrix Date: Sat, 12 Sep 2026 09:00:42 +0200 Message-ID: <20260912065540.879623423@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065526.833703348@linuxfoundation.org> References: <20260912065526.833703348@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ondrej Jirman [ Upstream commit dfc735fd93e4814e65894916ec5f807f25a391d1 ] The current mount matrix for mpu6050 is wrong. The mount matrix is a simple transform from the sensor coordinate space to the device coordinate space described in DT, where, looking at the screen, X points to the right, Y to the top, and Z towards the user. The mpu6050 is mounted like this (looking at the screen from the front; the sensor is on the near side of the PCB, so its Z axis points towards the user; o marks the pin 1 corner): +Xs ^ | +------+ +Ys <--| | | o | +------+ so this gives: Xd = -Ys [0, -1, 0] Yd = Xs [1, 0, 0] Zd = Zs [0, 0, 1] Fixes: 2496b2aaacf1 ("arm64: dts: allwinner: pinephone: Add mount matrix to accelerometer") Signed-off-by: Ondrej Jirman Link: https://patch.msgid.link/20260725111909.2244868-1-megi@xff.cz Signed-off-by: Chen-Yu Tsai Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 5bc18f8fe3e84..ec4c627f7cc38 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -200,8 +200,8 @@ accelerometer@68 { interrupts = <7 5 IRQ_TYPE_EDGE_RISING>; /* PH5 */ vdd-supply = <®_dldo1>; vddio-supply = <®_dldo1>; - mount-matrix = "0", "1", "0", - "-1", "0", "0", + mount-matrix = "0", "-1", "0", + "1", "0", "0", "0", "0", "1"; }; }; -- 2.53.0