summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
diff options
context:
space:
mode:
authorAngus Ainslie <angus@akkea.ca>2023-03-09 23:46:02 +0300
committerShawn Guo <shawnguo@kernel.org>2023-03-27 04:47:52 +0300
commita27f81d3d59350a196c3c7bfba4a9f45cbacc7ae (patch)
treeb5cec46db7e9d3730302db3f467564f3f2f0bf24 /arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
parentc24a9b698fb02cd0723fa8375abab07f94b97b10 (diff)
downloadlinux-a27f81d3d59350a196c3c7bfba4a9f45cbacc7ae.tar.xz
arm64: dts: imx8mq-librem5: add the magnetometer mount matrix
Userland needs the mount matrix to know the correct orientation of the part. Signed-off-by: Angus Ainslie <angus@akkea.ca> Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi')
-rw-r--r--arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
index c1279e96effd..db81ed699de7 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
@@ -38,6 +38,12 @@
};
};
+&magnetometer {
+ mount-matrix = "1", "0", "0",
+ "0", "-1", "0",
+ "0", "0", "-1";
+};
+
&proximity {
proximity-near-level = <25>;
};