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 ECED742586B; Sat, 12 Sep 2026 12:31:56 +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=1789216318; cv=none; b=jfqNSaotvFeX74FKWd/ZiFJDv1rGwdXHJaTBKzdBHZrqKicljvq8cFZBrxZjzXyIySjuSW7ZkYhnookU9ybwZKWfNbj8l9VOmjFMVvRmO8Tbhzdcb26iLCoWx5pbqqDh2DDMX2/FjLtrsI0myIzqmsRdMsmvYYV+R7sZoAAS6K0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789216318; c=relaxed/simple; bh=SSMsEoUeTym8oVeqc0/G/FByliAZ1TrlTFdZBM80oxA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SKTItmOp657WgHd++3SRKOC2RaabXkHTPJxeCTq52bszcQy5jNGYk43a3m4TtqavyJ3pQg51sigUgvkWEaycyxMZmJBfDBB7iotMIF5DcAW8XFfi+OfcLj4G86EiKmPiqfCVYBw+qB9ERfnB2x2T+JwX5B7ZE6MX4+ZmqQ4JNs4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NJzl5ac2; 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="NJzl5ac2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA5461F000FF; Sat, 12 Sep 2026 12:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789216316; bh=t04MpU7vTBTp0AcQP5yhWkjtBqrGpOEoa+uhvPXLIR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NJzl5ac2+d+AtT/nYY3yUuQDY51ljDc9f8j4SUevAKbuCjuYv/jVC33X2DAl7qW6n 7czq6ZFZ7L9AKTfuYrq86yIRsTGCzV+vsDYiaekdS77PI6Y2omSNxNNpGYSBtH7Tlo UnPFL1hghVlxTfJPKhNW235jpQhppCAtBDMtWyCQ= 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 6.12 0713/1376] arm64: dts: allwinner: sun50i-a64-pinephone: Fix mpu6050 mount matrix Date: Sat, 12 Sep 2026 08:52:19 +0200 Message-ID: <20260912065623.433377204@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.535295758@linuxfoundation.org> References: <20260912065607.535295758@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 6.12-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 b844759f52c0d..82f959aace109 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -212,8 +212,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