您尚未登录。

楼主 #1 2019-08-09 21:37:01

danile
会员
注册时间: 2019-07-08
已发帖子: 76
积分: 54.5

ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

ft6336电容触摸 使用的是edt-ft5x06驱动,地址(7bit地址)都是0x38

ts_test  出现:

tslib: Selected device is not a touchscreen (must support ABS and KEY event types)

我的dts配置:

&i2c0 {
	status = "okay";
	ft6336g: edt-ft5x06@38 {
		compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
		reg = <0x38>;
        interrupt-parent = <&pio>;
        interrupts = <1 2 IRQ_TYPE_EDGE_FALLING>;/*(PB02)*/
		pinctrl-names = "default";
        pinctrl-0 = <&ts_reset_pin>;
        irq-gpios = <&pio 1 2 GPIO_ACTIVE_HIGH>; /* (PB02) */
        reset-gpios = <&pio 4 0 GPIO_ACTIVE_LOW>; /* (PE00) */
		/*wake-gpios = <&pio 4 9 GPIO_ACTIVE_HIGH>;*/
        /*touchscreen-swapped-x-y*/
	};
};

驱动记载波形:https://whycan.cn/files/members/1808/none_20190809-2134.zip

发现rst出现类似毛刺的波形:

_20190809213606.png

离线

#2 2019-08-09 22:01:52

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

贴一下驱动检测硬件的 log, 有没有 probe 到 ft6336 ?





离线

楼主 #3 2019-08-10 07:38:52

danile
会员
注册时间: 2019-07-08
已发帖子: 76
积分: 54.5

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

晕哥 说:

贴一下驱动检测硬件的 log, 有没有 probe 到 ft6336 ?

加载驱动好像没什么问题:

# insmod edt-ft5x06.ko
[   27.093508] input: EP0250M09 as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0038/input/input1

离线

楼主 #4 2019-08-10 07:57:09

danile
会员
注册时间: 2019-07-08
已发帖子: 76
积分: 54.5

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

晕哥 说:

贴一下驱动检测硬件的 log, 有没有 probe 到 ft6336 ?

我发现那个毛刺就是触摸中断,可是用ts-test 出现 tslib: Selected device is not a touchscreen (must support ABS and KEY event types)

难道是edt-ft5x06 和 ft6336 不兼容?

离线

楼主 #5 2019-08-10 08:07:09

danile
会员
注册时间: 2019-07-08
已发帖子: 76
积分: 54.5

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

晕哥 说:

贴一下驱动检测硬件的 log, 有没有 probe 到 ft6336 ?

看波形①是正常的中断信号,②可能是I2C时钟引起的,可能中断脚上加一颗100pF的电容比较好点!但是这个应该不是照成的原因

2019-08-10_080407.jpg

最近编辑记录 danile (2019-08-10 08:07:49)

离线

#6 2019-08-10 08:12:48

超级萌新
会员
注册时间: 2018-05-04
已发帖子: 408
积分: 407

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

先用 evtest 测试,这个可以手动选设备。
ts_test 不行估计是因为环境变量设置的是按键设备,你要改下环境变量才行

离线

#7 2019-08-10 08:40:08

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

超级萌新 说:

先用 evtest 测试,这个可以手动选设备。
ts_test 不行估计是因为环境变量设置的是按键设备,你要改下环境变量才行

对, 试一试这样:

###根据实际情况填写###
export TSLIB_CALIBFILE='/etc/pointercal'
export TSLIB_CONFFILE='/etc/ts.conf'
export TSLIB_FBDEVICE='/dev/fb0'
export TSLIB_PLUGINDIR='/usr/lib/ts'
export TSLIB_TSDEVICE='/dev/input/event0'

ts_calibrate
ts_test





离线

楼主 #8 2019-08-10 09:14:00

danile
会员
注册时间: 2019-07-08
已发帖子: 76
积分: 54.5

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

晕哥 说:
超级萌新 说:

先用 evtest 测试,这个可以手动选设备。
ts_test 不行估计是因为环境变量设置的是按键设备,你要改下环境变量才行

对, 试一试这样:

###根据实际情况填写###
export TSLIB_CALIBFILE='/etc/pointercal'
export TSLIB_CONFFILE='/etc/ts.conf'
export TSLIB_FBDEVICE='/dev/fb0'
export TSLIB_PLUGINDIR='/usr/lib/ts'
export TSLIB_TSDEVICE='/dev/input/event0'

ts_calibrate
ts_test


环境变量   TSLIB_TSDEVICE 设置就好了,感谢晕哥!!!

离线

#9 2020-06-19 15:50:53

嵌入式冲
会员
注册时间: 2020-05-24
已发帖子: 138
积分: 110

Re: ft6336电容触摸 ts_test 出现tslib: Selected device is not a touchscreen

晕哥 说:

对, 试一试这样:

晕哥,我文件里面找不到pointercal和event0(或event1)这两个没有,其他都有,是不同rootfs这两个名字不一样还是我编译有问题

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn