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

42 lines
1.0 KiB
Diff

From c06374c8010284da9ee42224b297e02094660bd9 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 9 Sep 2022 16:41:33 +0200
Subject: [PATCH 286/391] 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 3e6730897..7356421ba 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
@@ -930,6 +930,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.35.3