解决:在kernel/drivers/input/touchscreen/gt9xx/gt9xx.c驱动中搜索“no max-x defined”的关键句;发现设备树中没有配置tp-size属性,根据代码的理解是选择触摸屏芯片的型号(若代码中没有对应的芯片型号,可以自己添加): if(of_property_read_u32(np,"tp-size", &val)) {dev_err(&client->dev,"no max-...
2.2.1、配置tp-size tp-size 代码语言:javascript 代码运行次数:0 运行 AI代码解释 if(of_property_read_u32(np,"tp-size",&val)){dev_err(&client->dev,"no max-x defined\n");return-EINVAL;}if(val==89){m89or101=TRUE;gtp_change_x2y=TRUE;gtp_x_reverse=FALSE;gtp_y_reverse=TRUE;}elseif...
;89>; }; };3.在驱动源码文件里面:gt9xx.c下图源码用于调节触摸xy轴,val是读取设备树里的tp-size来获取的,由于我的触摸IC本身就烧写了正确的程序,所以设备树里我...1.打开menuconfig里gt9xx驱动->DeviceDrivers->Inputdevicesupport -> Genericinputlayer ...
将配置信息设置到TP上 经过查看代码,我们主要需要配置的参数有如下: (1)tp-size (2)touch-gpio、reset-gpio、power-gpio (3)max-x、max-y 2.2.1、配置tp-size tp-size if (of_property_read_u32(np, "tp-size", &val)) {dev_err(&client->dev, "no max-x defined\n");return -EINVAL;}if ...
将配置信息设置到TP上 经过查看代码,我们主要需要配置的参数有如下: (1)tp-size (2)touch-gpio、reset-gpio、power-gpio (3)max-x、max-y 2.2.1 配置tp-size tp-size if (of_property_read_u32(np, "tp-size", &val)) { dev_err(&client->dev, "no max-x defined\n"); return -EINVAL; }...
tp-size = <101>;tp-供应 = <&vcc3v3_lcd>;};};5.命令行调试过程 5.1 查看输入设备 命令行...
id==0X5510)GT9147_Send_Cfg(1);//更新并保存配置 } delay_ms(10); temp[0]=0X00; GT9147_WR_Reg(GT_CTRL_REG,temp,1);//结束复位 return 0; } return 1; } const u16 GT9147_TPX_TBL[5]={GT_TP1_REG,GT_TP2_REG,GT_TP3_REG,GT_TP4_REG,GT_TP5_REG}; //扫描触摸屏(采用查询方式...
#define GT911_TP5_REG 0X8170 //第五个触摸点数据地址 struct gt911_point_typedef { uint16_t x1; uint16_t y1; uint16_t x2; uint16_t y2; uint16_t x3; uint16_t y3; uint16_t x4; uint16_t y4; uint16_t x5; uint16_t y5; ...
// read tp info static int cdtlcd_i2c_read_tp_info(void) { int rom_value,ret; unsigned char buf[8]={0}; ret = cdtlcd_read_reg(FT5X0X_REG_FIRMID,buf); //读取 0xa5的固件ID if(ret < 0){ return -1; } printk(FT5406_DEBUG_LEVEL "%s , firmware version[%0x h]: 0x%0x\n...
//TP:GT911&i2c5 { status ="okay";goodix_ts@5d{ compatible ="goodix,gt9xx"; reg = <0x5d>; goodix_irq_gpio = <&gpio2 RK_PB2 IRQ_TYPE_LEVEL_HIGH>; goodix_rst_gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; gtp_resolution_x = <600>; ...