RK 3128 调触摸屏 TP GT9XX

 

一.dts 配置

1.1.触摸屏 TP 的配置

 

2.1.原理图

a.复位脚

 

b.中断脚

 

 

 2.3. dts

diff --git a/kernel/arch/arm/boot/dts/rk3128-zk-r31a.dts b/kernel/arch/arm/boot/dts/rk3128-zk-r31a.dts
index 467ad8a..eb08cf0 100755
--- a/kernel/arch/arm/boot/dts/rk3128-zk-r31a.dts
+++ b/kernel/arch/arm/boot/dts/rk3128-zk-r31a.dts
@@ -187,7 +187,20 @@
 				compatible = "rtc,hym8563";
 				reg = <0x51>;
 				//irq_gpio = <&gpio0 GPIO_D3 IRQ_TYPE_EDGE_FALLING>;
-		};		
+		};	
+      
+	    goodix@14 {
+	    	
+			status = "okay";
+			
+        compatible = "goodix,gt9xx";
+        reg = <0x14>;
+        max-x = <1280>;
+        max-y = <800>;
+        tp-size= <101>;
+        touch-gpio = <&gpio3 GPIO_D2 IRQ_TYPE_LEVEL_LOW>;
+        reset-gpio = <&gpio2 GPIO_A4 GPIO_ACTIVE_HIGH>;
+      };		
 };

 二.驱动

2.1. #define GTP_DRIVER_SEND_CFG   0    记得定义成0 

2.2.驱动添加 kernel\drivers\input\touchscreen\gt9xx 

三.adb getevent

posted @ 2021-05-22 11:53  CrushGirl  阅读(849)  评论(0编辑  收藏  举报