From: Dragan Simic <dsimic@manjaro.org>
To: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Cc: "Chen-Yu Tsai" <wens@csie.org>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Samuel Holland" <samuel@sholland.org>,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Ondřej Jirman" <megi@xff.cz>
Subject: Re: [PATCH] arm64: dts: sun50i-a64-pinephone: Add mount matrix for accelerometer
Date: Thu, 19 Sep 2024 20:34:32 +0200 [thread overview]
Message-ID: <b4139fedf81f3a3fc94d361b7f013109@manjaro.org> (raw)
In-Reply-To: <Zur4rhyT50lwxE_v@skv.local>
Hello Andrey,
On 2024-09-18 17:58, Andrey Skvortsov wrote:
> 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.
Oh, no worries at all. It's always good to discuss and iron out
any kinks, to eliminate any possible doubt.
The entire concept of how the values on the z-axis are read is
a bit confusing indeed. When the device is stationary on a level
surface, with the screen pointing upwards, it's like the device is
defying the Earth's gravity pull. Well, not actually the device,
but the surface it's resting on, :) but you get the point.
>> 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)
Yes, you basically already did that. :) Thanks, I'll send my version
of the patch in the next few hours, with proper attribution included
for you and Ondrej, of course.
>>> [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
next prev parent reply other threads:[~2024-09-19 18:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-16 20:45 [PATCH] arm64: dts: sun50i-a64-pinephone: Add mount matrix for accelerometer Andrey Skvortsov
2024-09-16 21:08 ` Dragan Simic
2024-09-17 17:56 ` Andrey Skvortsov
2024-09-18 9:27 ` Dragan Simic
2024-09-18 10:02 ` Dragan Simic
2024-09-18 11:00 ` Andrey Skvortsov
2024-09-18 11:22 ` Dragan Simic
2024-09-18 11:27 ` Dragan Simic
2024-09-18 13:41 ` Andrey Skvortsov
2024-09-18 15:58 ` Andrey Skvortsov
2024-09-19 18:34 ` Dragan Simic [this message]
2024-09-21 7:44 ` Dragan Simic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4139fedf81f3a3fc94d361b7f013109@manjaro.org \
--to=dsimic@manjaro.org \
--cc=andrej.skvortzov@gmail.com \
--cc=conor+dt@kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=megi@xff.cz \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox