Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83
原理图:
1.使用的是I2C3
2.TOUCH_RST_L对应GPIO是GPIO4_C6
3.TOUCH_INT_L对应GPIO是GPIO4_C7
4.电源默认上电提供
5.原理图上I2C在画图时候忘记上拉了
驱动移植:
DTS配置:
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-ecovacs.dts b/arch/arm64/boot/dts/rockchip/rk3399-ecovacs.dts
index aab6d0f..68cde12 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-ecovacs.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-ecovacs.dts
@@ -607,6 +607,42 @@
};
};
+//Kris,180702, add GT9XX touch.
+&i2c3 {
+ status = "okay";
+ i2c-scl-rising-time-ns = <345>;
+ i2c-scl-falling-time-ns = <11>;
+ clock-frequency = <400000>;
+
+ ts@14 {