42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From 0680caae8ff49b7bf9fe70887f5e0a8e872236e4 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megi@xff.cz>
|
|
Date: Fri, 9 Sep 2022 16:41:33 +0200
|
|
Subject: [PATCH 287/389] 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 feca7c319dd8..dd11208b0a7b 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
|
@@ -915,6 +915,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
|
|
|