arm64: dts: imx8mq-librem5: add the magnetometer mount matrix
authorAngus Ainslie <angus@akkea.ca>
Thu, 9 Mar 2023 20:46:02 +0000 (21:46 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Mar 2023 01:47:52 +0000 (09:47 +0800)
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>
arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

index c1279e9..db81ed6 100644 (file)
        };
 };
 
+&magnetometer {
+       mount-matrix =  "1",  "0",  "0",
+                       "0", "-1",  "0",
+                       "0",  "0", "-1";
+};
+
 &proximity {
        proximity-near-level = <25>;
 };
index eaf35cf..7e47013 100644 (file)
        pinctrl-0 = <&pinctrl_i2c2>;
        status = "okay";
 
-       magnetometer@1e {
+       magnetometer: magnetometer@1e   {
                compatible = "st,lsm9ds1-magn";
                reg = <0x1e>;
                pinctrl-names = "default";