[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v66aody60h=Bpk49pxogq93FekmO48uThPET2RKxvx=OGw@mail.gmail.com>
Date: Fri, 25 Oct 2024 22:47:25 +0800
From: Chen-Yu Tsai <wens@...e.org>
To: Dragan Simic <dsimic@...jaro.org>
Cc: linux-sunxi@...ts.linux.dev, robh@...nel.org, krzk+dt@...nel.org,
conor+dt@...nel.org, jernej.skrabec@...il.com, samuel@...lland.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Ondrej Jirman <megi@....cz>, Andrey Skvortsov <andrej.skvortzov@...il.com>
Subject: Re: [PATCH] arm64: dts: allwinner: pinephone: Add mount matrix to accelerometer
On Wed, Oct 23, 2024 at 5:11 AM Dragan Simic <dsimic@...jaro.org> wrote:
>
> Hello,
>
> On 2024-09-19 21:15, Dragan Simic wrote:
> > The way InvenSense MPU-6050 accelerometer is mounted on the user-facing
> > side
> > of the Pine64 PinePhone mainboard, which makes it rotated 90 degrees
> > counter-
> > clockwise, [1] requires the accelerometer's x- and y-axis to be
> > swapped, and
> > the direction of the accelerometer's y-axis to be inverted.
> >
> > Rectify this by adding a mount-matrix to the accelerometer definition
> > in the
> > Pine64 PinePhone dtsi file.
> >
> > [1]
> > https://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf
> >
> > Fixes: 91f480d40942 ("arm64: dts: allwinner: Add initial support for
> > Pine64 PinePhone")
> > Cc: stable@...r.kernel.org
> > Helped-by: Ondrej Jirman <megi@....cz>
> > Helped-by: Andrey Skvortsov <andrej.skvortzov@...il.com>
> > Signed-off-by: Dragan Simic <dsimic@...jaro.org>
>
> Just a brief reminder about this patch... Please, let me know if some
> further work is needed for it to become accepted.
Thanks.
There's no "Helped-by" tag, and checkpatch would complain. The closest
would be either Suggested-by or Co-developed-by, but with the latter
you would also need their Signed-off-by.
I can change it to Suggested-by if that's OK with you.
ChenYu
> > ---
> >
> > Notes:
> > See also the linux-sunxi thread [2] that has led to this patch,
> > which
> > provides a rather detailed analysis with additional details and
> > pictures.
> > This patch effectively replaces the patch submitted in that thread.
> >
> > [2]
> > https://lore.kernel.org/linux-sunxi/20240916204521.2033218-1-andrej.skvortzov@gmail.com/T/#u
> >
> > 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 6eab61a12cd8..b844759f52c0 100644
> > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
> > @@ -212,6 +212,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";
> > };
> > };
>
Powered by blists - more mailing lists