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>
This commit is contained in:
Angus Ainslie 2023-03-09 21:46:02 +01:00 committed by Shawn Guo
parent c24a9b698f
commit a27f81d3d5
2 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,12 @@
};
};
&magnetometer {
mount-matrix = "1", "0", "0",
"0", "-1", "0",
"0", "0", "-1";
};
&proximity {
proximity-near-level = <25>;
};

View File

@ -981,7 +981,7 @@
pinctrl-0 = <&pinctrl_i2c2>;
status = "okay";
magnetometer@1e {
magnetometer: magnetometer@1e {
compatible = "st,lsm9ds1-magn";
reg = <0x1e>;
pinctrl-names = "default";