From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5F35C3ABCB for ; Mon, 16 Sep 2024 21:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YLi7styXVTGwuulx+I+C4Q/VsEp7/nuBRguC7NX3Iyc=; b=BZoiWM1ZZTbskWIcMJps6V1/Q3 vUIUbWSiv9pEOit7/F8l+O5qz9/qLkc0HHIJGu2pbQrC9A8TtPmBhQgeeUcudtC4tCUYVeL1SVu2A qr6wcIZmXtAevA3im558VDEJGvDlSbbSoDXNmnz3bUNBA8IcXxQoYN6fEeqsI8kUo9jkVC81yox5m A4piGjAASUmCaW/MRgvCFK//roGdfe2ggiw185Wo9xrWpFx3Vm7IsgNbA4Vj12yhVAjQU5OAVEEQd ituNqxXBt0A0cskgjH9k2l9GIA0NM3u0RJllZXAxgRDmBU3lVS6IUtVJYdlyq+iaWXuL0hf2rVUb2 crcqQrvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqIz0-00000004uWW-3qQe; Mon, 16 Sep 2024 21:10:06 +0000 Received: from mail.manjaro.org ([2a01:4f8:c0c:51f3::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqIxt-00000004uKr-3B2F for linux-arm-kernel@lists.infradead.org; Mon, 16 Sep 2024 21:09:00 +0000 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1726520932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YLi7styXVTGwuulx+I+C4Q/VsEp7/nuBRguC7NX3Iyc=; b=yWEpc4MxBG2Jma2/Wb7G1Mu7zsAxnPzsj/UgMq65kTbw4qi7W+oNb7EhKwj+SGqJDnAo4e gBbecq6n84cDJ1mzPlR8LIYRWiK1Wag0fC/YbNrDGoaJopM9UDyF6LkaMDfejibvRevO5o FN4rrstZJEKkoRXWb2XxCqpuP/8XqRQMMeBV4LzTBp9iN2Vn27iiUbUYwHD6gNdzaSP0gR aRVIBKzMCxzDmHOTAIDn8iCTL6JlowFcyl1wsVGGxBC/l9FFboBJdBiVYY3/CY9wse9eii QLFFhLqANy//67VQbZrqXLBkUecv+X8Qp4TlwfE9y0fmTQ9QBA68oclFq1xKwQ== Date: Mon, 16 Sep 2024 23:08:51 +0200 From: Dragan Simic To: Andrey Skvortsov Cc: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Ond=C5=99ej_Jirman?= Subject: Re: [PATCH] arm64: dts: sun50i-a64-pinephone: Add mount matrix for accelerometer In-Reply-To: <20240916204521.2033218-1-andrej.skvortzov@gmail.com> References: <20240916204521.2033218-1-andrej.skvortzov@gmail.com> Message-ID: <6e5d0e9978bff30559c17f30d1495b59@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240916_140858_297505_AA45D95D X-CRM114-Status: GOOD ( 13.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello Andrey, On 2024-09-16 22:45, Andrey Skvortsov wrote: > From: OndÅ™ej Jirman > > accelerometer is mounted the way x and z-axis are invereted, x and y > axis have to be spawed to match device orientation. > The mount matrix is based on PCB drawing and was tested on the device. This commit summary should be copyedited for grammar and style. If you want, I can provide a copyedited version? > Signed-off-by: Ondrej Jirman > Signed-off-by: Andrey Skvortsov > --- > arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > index bc6af17e9267a..1da7506c38cd0 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > @@ -229,6 +229,9 @@ accelerometer@68 { > 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"; > }; > };