Skip to contentSkip to conversation

arm64: dts: rockchip: Add icm42607p IMU for RG-Vita-Pro

PATCH Applied Chris Morgan 2 participants 2 messages Oct 26 – Nov 1

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: Add icm42607p IMU for RG-Vita-Pro

From: Chris Morgan <[email protected]>

Add the Invensense ICM42607P IMU for the Anbernic RG-DS. Mount-matrix was tested with iio-sensor-proxy and reports correct orientation. Orientation is relative to panel physical hardware which is rotated 270 degrees in software.

---
 .../dts/rockchip/rk3576-anbernic-rg-vita-pro.dts    | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3576-anbernic-rg-vita-pro.dts +12 -1
index 358dea43f9b6..15d724b72ba1 100644
@@ -819,7 +819,18 @@ regulator-state-mem {
 &i2c2 {
 	status = "okay";
 
-	/* inv,icm42607 IMU at 0x68 */
+	/*
+	 * Mount matrix relative to panel physical hardware which is
+	 * rotated 270 degrees.
+	 */
+
+	icm42607p: imu@68 {
+		compatible = "invensense,icm42607p";
+		reg = <0x68>;
+		mount-matrix = "0", "1", "0",
+			       "1", "0", "0",
+			       "0", "0", "-1";
+	};
 };
 
 &i2c3 {
Signature · 1 line
2.53.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Chris Morgan

Add the Invensense ICM42607P IMU for the Anbernic RG-DS. Mount-matrix was tested with iio-sensor-proxy and reports correct orientation. Orientation is relative to panel physical hardware which is rotated 270 degrees in software.

Applied, thanks!

[1/1] arm64: dts: rockchip: Add icm42607p IMU for RG-Vita-Pro

      commit: 4a17cc3bd48ecf4dcb7df2b26538e0d28e35d873

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>