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 343B1CDD543 for ; Wed, 18 Sep 2024 16:00:03 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/nN4RLUg+rsp0zC2dF8c0G2tRr1/u478Y/JOVZAT/Z0=; b=NBDnWLp0j2igzcBh3VoFMWZMl9 39c10WjEbDxl+NBybi5rhQVPW9MCG1/tfvfwH6rkOJ3S0TkRrAEC+pOsN+p+ewooh/I8zh7OdW7sY U1DHpQ11PHuhEeO+muGw8LbBKYyiKiza2kMEAzJ5JxYfr3b5WKr2j80la9b4qkpRjPJFlD2eybPbR z92ew2agMsCzwDhqPQZPycq57KOd1Trxl0wO2B5K7keoIR2xs01FjLoBGWFNzJEnxJaXbGpt+d0BC 76E4APXTyHqtxcesViYZ/padzqWrd6xXRskY0OnuASt50bM7W7P/3TtCw44Y/An51hL0E8JGgNVM2 TrPhdpMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqx5r-00000008a6q-0eRk; Wed, 18 Sep 2024 15:59:51 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqx4k-00000008ZzP-1cux for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 15:58:43 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5365b6bd901so7858888e87.2 for ; Wed, 18 Sep 2024 08:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726675120; x=1727279920; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=/nN4RLUg+rsp0zC2dF8c0G2tRr1/u478Y/JOVZAT/Z0=; b=e3uSKKsQxvsnB+oUq1zK2n6frruBJ6oVlncnGADDcA9h0Bu662jiAmQ5+M47rVBE2k 1pkwO0KZJHl/ANmx9e+LaxLvdcsKK5MddfryLtWcY/U5G+qiHGMVsumArzchHb5W2xqK 7WnbxF08WR5DE66lAMv+g58SDjYcEGHiRSpSYbVfAGGxPb/2IcOr32b0OAMi13VsjrNh GaVdyJejRgP9oXy3qOtqdNM4Drkbu8VBvsW6BNUQYPv7K0+0L6WJPfA2KQ13yDI0fxXQ sQmWCmrjvC6c01gtMwQRCW7xuSJ56uvhyA4GZBJ5BSZqbbQoEy+DvQDzPEitT4deLr6h MWxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726675120; x=1727279920; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/nN4RLUg+rsp0zC2dF8c0G2tRr1/u478Y/JOVZAT/Z0=; b=qyfC1xYjyl9GVTxmOHJ+hMVX1FNP8NqOS4gcARn9fxOQ//X5ZnMN1gChHBT4rKPUp6 YZC9xUniRy3oFv8kkvqHfB/yhPpifEqOP+wQ5KdpGNM78JN4GDCLOha7P1kOsFiaXXsM fdDge7cSY1SvWB5BIaESKeYNNunhkyhkn4qBQ3X42lagWi/SnV2hsHGqoZCAfBH1k8lQ sJ6gYJK3e6nuOcJ4SF831M81RZrOltCN7BUgdnB5h5jjgyPvmgQU6iHsRMzDMrp8a4ti qdLwpTRPqF1NFO5UGJvQJrVjnFTMnun+dsf7ZQnnqbAGU+vhlaFH/D1eh/UaJxW6Jxc4 nRCQ== X-Forwarded-Encrypted: i=1; AJvYcCWYqv9Flz1o8o8H3Bek5LES1zWnSrjZlMF8jtcDunPB5PmA94hBGPmObyQ3Vs0jayoGjUe6WaX00H5Gy85kHTm2@lists.infradead.org X-Gm-Message-State: AOJu0Yx3z4fumViTUMbVIPmn6CvjQh7HGZJebnZZpEfh1PwdX/sk3WB4 0dF7B63clxnsydfETyI98MptAfYZnugObinkXw7AQc3EjbzFhr2Q X-Google-Smtp-Source: AGHT+IH8VOQsJfHDSqWN86iefH7nUBxWL2kMFITGTcXQybMmXDSZE1mijRo3aKboOiGWLXoB8Q9s6w== X-Received: by 2002:a05:6512:33ca:b0:52c:dc97:45d1 with SMTP id 2adb3069b0e04-53678fb1db0mr12278687e87.10.1726675119540; Wed, 18 Sep 2024 08:58:39 -0700 (PDT) Received: from localhost ([94.19.228.143]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53687096890sm1549135e87.130.2024.09.18.08.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 08:58:38 -0700 (PDT) Date: Wed, 18 Sep 2024 18:58:38 +0300 From: Andrey Skvortsov To: Dragan Simic , 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 Message-ID: Mail-Followup-To: Andrey Skvortsov , Dragan Simic , 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 References: <20240916204521.2033218-1-andrej.skvortzov@gmail.com> <6e5d0e9978bff30559c17f30d1495b59@manjaro.org> <8df5fc79a3e899738aa944a290774c72@manjaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_085842_452255_B1EFEE4A X-CRM114-Status: GOOD ( 20.00 ) 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 Hi Dragan, On 24-09-18 16:41, Andrey Skvortsov wrote: > On 24-09-18 13:27, Dragan Simic wrote: > > > In device tree mount-matrix documentation [3] there is > > > > > > users would likely expect a value of 9.81 m/s^2 upwards along the (z) > > > axis, i.e. out of the screen when the device is held with its screen > > > flat on the planets surface. > > > > > how I read kernel documentation. Hm, I think I misunderstand this part in kernel documentation and you were correct. > Picture 2. > > up > > +--------+ > ! ! > ++++++++++ > ! > ! > v > gravity, Z > > down > > Screen (drawn as ++++++++++) is looking downwards ("its screen flat on > the planets surface"). Gravity and Z axis point into the same > direction and it's expected to read positive value. Sorry, for the noise. > Actually, unless my analysis is proven wrong, perhaps it would > be better if I'd submit this patch in its final form, because it > has diverged a lot from the original patch. IIUC, Ondrej only > imported the original patch from somewhere, without some kind of > proper attribution. [4] please, submit your version of this patch. I'd be glad to review it (I think, I've already did) >> [1] https://rimgo.reallyaweso.me/vrBXQPq.png >> [2] https://rimgo.reallyaweso.me/uTmT1pr.png >> [3] https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/mount-matrix.txt > [4] https://xff.cz/kernels/6.9/patches/0221-arm64-dts-sun50i-a64-pinephone-Add-mount-matrix-for-.patch -- Best regards, Andrey Skvortsov