build/patch/kernel/archive/sunxi-6.4/patches.megous/arm64-dts-pinephone-pro-Add-accelerometer-sensor-support.patch

42 lines
1.1 KiB
Diff
Raw Permalink Normal View History

From 7639f8f564402b3b17b4982b8d14472563a18aa6 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 9 Sep 2022 16:41:33 +0200
Subject: [PATCH 289/469] arm64: dts: pinephone-pro: Add accelerometer sensor
support
Pinephone Pro uses mpu6500.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
.../boot/dts/rockchip/rk3399-pinephone-pro.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
index c62b5cf25cc8..04760e0b917d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
@@ -929,6 +929,20 @@ usbc_dp: endpoint {
};
};
};
+
+ accelerometer@68 {
+ compatible = "invensense,mpu6500";
+ reg = <0x68>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <RK_PC6 IRQ_TYPE_LEVEL_LOW>;
+ vdd-supply = <&vcc_1v8>;
+ vddio-supply = <&vcc_1v8>;
+
+ mount-matrix =
+ "1", "0", "0",
+ "0", "-1", "0",
+ "0", "0", "1";
+ };
};
&i2s0 {
--
2.34.1