1root { 2 input_config { 3 touchConfig { 4 touch0 { 5 boardConfig { 6 match_attr = "touch_device1"; 7 inputAttr { 8 /* 0:touch 1:key 2:keyboard 3:mouse 4:button 5:crown 6:encoder */ 9 inputType = 0; 10 solutionX = 480; 11 solutionY = 960; 12 devName = "main_touch"; 13 } 14 busConfig { 15 // 0:i2c 1:spi 16 busType = 0; 17 busNum = 2; 18 clkGpio = 116; 19 dataGpio = 117; 20 i2cClkIomux = [0x50009020, 0x40000]; 21 i2cDataIomux = [0x50009020, 0x400000]; 22 } 23 24 pinConfig { 25 rstGpio = 71; 26 intGpio = 104; 27 rstRegCfg = [0x50008024, 0x0]; 28 intRegCfg = [0x50007020, 0x0]; 29 } 30 31 powerConfig { 32 /* 0:unused 1:ldo 2:gpio 3:pmic */ 33 vccType = 1; 34 vccNum = 20; // gpio20 35 vccValue = 1800; 36 vciType = 1; 37 vciNum = 12; // ldo12 38 vciValue = 3300; 39 } 40 41 featureConfig { 42 capacitanceTest = 0; 43 gestureMode = 0; 44 gloverMOde = 0; 45 coverMode = 0; 46 chargerMode = 0; 47 knuckleMode = 0; 48 } 49 } 50 51 chipConfig { 52 template touchChip { 53 match_attr = ""; 54 chipName = "gt911"; 55 vendorName = "zsj"; 56 chipInfo = "AAAA11222"; // 4-ProjectName, 2-TP IC, 3-TP Module 57 /* 0:i2c 1:spi*/ 58 busType = 0; 59 deviceAddr = 0xBA; 60 /* 0:None 1:Rising 2:Failing 4:High-level 8:Low-level */ 61 irqFlag = 2; 62 maxSpeed = 400; 63 chipVersion = 0; //parse Coord TypeA 64 powerSequence { 65 /* [type, status, dir , delay] 66 <type> 0:none 1:vcc-1.8v 2:vci-3.3v 3:reset 4:int 67 <status> 0:off or low 1:on or high 2:no ops 68 <dir> 0:input 1:output 2:no ops 69 <delay> meanings delay xms, 20: delay 20ms 70 */ 71 powerOnSeq = [4, 0, 1, 0, 72 3, 0, 1, 10, 73 3, 1, 2, 60, 74 4, 2, 0, 0]; 75 suspendSeq = [3, 0, 2, 10]; 76 resumeSeq = [3, 1, 2, 10]; 77 powerOffSeq = [3, 0, 2, 10, 78 1, 0, 2, 20]; 79 } 80 } 81 82 chip0 :: touchChip { 83 match_attr = "zsj_gt911_5p5"; 84 chipInfo = "ZIDN45100"; // 4-ProjectName, 2-TP IC, 3-TP Module 85 chipVersion = 0; //parse point by TypeA 86 } 87 } 88 } 89 } 90 } 91} 92