sunxi-i2c触摸i2c驱动问题
-
今天在使用Tina D1 SDK调试触摸屏时遇到一个很奇怪的问题
问题现象:root@TinaLinux:/# insmod /lib/modules/5.4.61/focaltech_ts.ko [ 28.605538] input: fts_ts as /devices/platform/soc@3000000/sunxi-i2c2/i2c-2/2-0014/input/input1 [ 28.615693] sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received [ 28.623829] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14) [ 28.658097] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14) [ 28.665731] fts_ts 2-0014: 2-0014 supply not found, using dummy regulator [ 28.673637] fts_ts 2-0014: 2-0014 supply not found, using dummy regulator [ 28.681388] debugfs: Directory '2-0014-' with parent 'reg-dummy-regulator-dummy' already present! [ 28.691410] fts_ts: probe of 2-0014 failed with error -16 root@TinaLinux:/#
重启开发板后重新装载驱动
root@TinaLinux:/# insmod /lib/modules/5.4.61/focaltech_ts.ko [ 12.416101] input: fts_ts as /devices/platform/soc@3000000/sunxi-i2c2/i2c-2/2-0014/input/input1 [ 12.426177] sunxi-i2c sunxi-i2c2: Bus error [ 12.430918] sunxi-i2c sunxi-i2c2: engine-mode: bus state: 0x0, isn't idle [ 12.441486] sunxi-i2c sunxi-i2c2: STOP failed! [ 12.446450] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14) [ 12.477260] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14) [ 12.484824] fts_ts 2-0014: 2-0014 supply not found, using dummy regulator [ 12.492661] fts_ts 2-0014: 2-0014 supply not found, using dummy regulator [ 12.500344] debugfs: Directory '2-0014-' with parent 'reg-dummy-regulator-dummy' already present! [ 12.510280] fts_ts: probe of 2-0014 failed with error -16
从linux-5.4/drivers/i2c/busses/i2c-sunxi.c代码来看,就是芯片向设备发送数据后,没有回应。第二次启动提示i2c2被占用。但我并没有在其他地方操作i2c2。
已确定的点:
1.MIPI屏的触摸芯片型号为ft5366,功能正常,已经在V853上测试过是正常的
2.装载驱动后没到probe匹配设备树就报错了,是在调用i2c-sunxi程序时出的问题请问各位大佬有遇到这种问题吗?
-
@null037
检查一下硬件部分,比如电源波纹等。 -
软重启?可能没完全掉电
-
@woodcat 应该不是软重启的问题,我换了一块板子也是一样的问题
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号