Sfoglia il codice sorgente

BUILD-616

- Display 5.7 anpassungen touchtreiber
Reinhard Russinger 7 anni fa
parent
commit
7744e5e9c1

+ 1 - 1
board/GfA/Display001/BUILD

@@ -1 +1 @@
-614
+616

+ 3 - 3
board/GfA/Display001/DTS_4.4/Display001_5.dts

@@ -250,11 +250,11 @@ i2c3: i2c@3 {
 
         polytouch: edt-ft5x06@38 {
                 compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
-/*
-		threshold_M09 = <18>;
+
 		gain_M09 = <4>;
+		threshold_M09 = <18>;
 		offset_M09 = <31>;
-*/
+
                 reg = <0x38>;
                 pinctrl-names = "default";
                 pinctrl-0 = <&edt_ft5x06_pins>;

+ 20 - 0
board/GfA/Display001/linux_4.4.94_rt19/linux-025-edt-ft5x06-fix-M9-M12-registercount-on-write.patch

@@ -0,0 +1,20 @@
+diff -Naurp a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c
+--- a/drivers/input/touchscreen/edt-ft5x06.c	2018-02-20 20:55:48.828441552 +0100
++++ b/drivers/input/touchscreen/edt-ft5x06.c	2018-02-20 20:55:02.332357749 +0100
+@@ -292,7 +292,6 @@ static int edt_ft5x06_register_write(str
+ 	case M06:
+ 		wrbuf[0] = tsdata->factory_mode ? 0xf3 : 0xfc;
+ 		wrbuf[1] = tsdata->factory_mode ? addr & 0x7f : addr & 0x3f;
+-		wrbuf[1] = tsdata->factory_mode ? addr & 0x7f : addr & 0x3f;
+ 		wrbuf[2] = value;
+ 		wrbuf[3] = wrbuf[0] ^ wrbuf[1] ^ wrbuf[2];
+ 		return edt_ft5x06_ts_readwrite(tsdata->client, 4, wrbuf, 0, NULL);
+@@ -302,7 +301,7 @@ static int edt_ft5x06_register_write(str
+ 		wrbuf[0] = addr;
+ 		wrbuf[1] = value;
+ 
+-		return edt_ft5x06_ts_readwrite(tsdata->client, 3,
++		return edt_ft5x06_ts_readwrite(tsdata->client, 2,
+ 					wrbuf, 0, NULL);
+ 
+ 	default: