diff options
author | Martin Kepplinger <martin.kepplinger@puri.sm> | 2020-02-27 14:17:33 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-03-11 08:59:19 +0100 |
commit | eef22bb129dfef560e9a17dac6fc751b24832bd1 (patch) | |
tree | 2cfc700e22cb0747739d920f32b60ffb33fb025c /arch/arm64/boot/dts/freescale | |
parent | arm64: dts: librem5-devkit: increase the VBUS current in the kernel (diff) | |
download | linux-eef22bb129dfef560e9a17dac6fc751b24832bd1.tar.xz linux-eef22bb129dfef560e9a17dac6fc751b24832bd1.zip |
arm64: dts: librem5-devkit: add lsm9ds1 mount matrix
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/freescale')
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 3 |
1 files changed, 3 insertions, 0 deletions
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"; }; }; |