From: Martin Kepplinger <martin.kepplinger@puri.sm>
To: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de
Cc: linux-imx@nxp.com, Anson.Huang@nxp.com,
devicetree@vger.kernel.org, kernel@puri.sm,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Martin Kepplinger <martin.kepplinger@puri.sm>,
Marco Felsch <m.felsch@pengutronix.de>
Subject: [PATCH v3 8/8] arm64: dts: librem5-devkit: add lsm9ds1 mount matrix
Date: Mon, 24 Feb 2020 07:29:17 +0100 [thread overview]
Message-ID: <20200224062917.4895-9-martin.kepplinger@puri.sm> (raw)
In-Reply-To: <20200224062917.4895-1-martin.kepplinger@puri.sm>
The IMU chip on the librem5-devkit is not mounted at the "natural" place
that would match normal phone orientation (see the documentation for the
details about what that is).
Since the lsm9ds1 driver supports providing a mount matrix, we can describe
the orientation on the board in the dts:
Create a right-handed coordinate system (x * -1; see the datasheet for the
axis) and rotate 180 degrees around the y axis because the device sits on
the back side from the display.
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
---
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index 72c622ffe6de..10eca94194be 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -539,6 +539,9 @@
reg = <0x6a>;
vdd-supply = <®_3v3_p>;
vddio-supply = <®_3v3_p>;
+ mount-matrix = "1", "0", "0",
+ "0", "1", "0",
+ "0", "0", "-1";
};
};
--
2.20.1
next prev parent reply other threads:[~2020-02-24 6:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-24 6:29 [PATCH v3 0/8] arm64: dts: librem5-devkit: description updates Martin Kepplinger
2020-02-24 6:29 ` [PATCH v3 1/8] arm64: dts: librem5-devkit: enable sai2 and sai6 audio interface Martin Kepplinger
2020-02-26 12:42 ` Fabio Estevam
2020-02-24 6:29 ` [PATCH v3 2/8] arm64: dts: librem5-devkit: add the simcom 7100 modem and sgtl5000 audio codec Martin Kepplinger
2020-02-24 6:29 ` [PATCH v3 3/8] arm64: dts: librem5-devkit: allow modem to wake the system from suspend Martin Kepplinger
2020-02-24 6:29 ` [PATCH v3 4/8] arm64: dts: librem5-devkit: add a vbus supply to usb0 Martin Kepplinger
2020-02-26 12:46 ` Fabio Estevam
2020-02-24 6:29 ` [PATCH v3 5/8] arm64: dts: librem5-devkit: add the regulators for DVFS Martin Kepplinger
2020-02-24 6:29 ` [PATCH v3 6/8] arm64: dts: librem5-devkit: allow the redpine card to be removed Martin Kepplinger
2020-02-24 6:29 ` [PATCH v3 7/8] arm64: dts: librem5-devkit: increase the VBUS current in the kernel Martin Kepplinger
2020-02-24 6:29 ` Martin Kepplinger [this message]
2020-02-24 7:55 ` [PATCH v3 0/8] arm64: dts: librem5-devkit: description updates Shawn Guo
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=20200224062917.4895-9-martin.kepplinger@puri.sm \
--to=martin.kepplinger@puri.sm \
--cc=Anson.Huang@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=kernel@puri.sm \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=mark.rutland@arm.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.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
all inboxes | Powered by JetHome®