嵌入式开发者社区

标题: 电阻触控芯片 xpt2046驱动移植 [打印本页]

作者: 武雨天    时间: 2018-8-9 15:11
标题: 电阻触控芯片 xpt2046驱动移植
ads7846驱动加载后  有中断产生,/Dev/input/ 下没有点击事件发生。怎么解决?需要修改哪里?
作者: vefone    时间: 2018-8-9 15:19


cat /proc/bus/input/devices  查看对应的节点


od -x /dev/input/event1 按下屏幕看是否有事件上报

cat /proc/interrupts | grep ads7846   查看是否有中断产生

作者: 武雨天    时间: 2018-8-9 15:36
vefone 发表于 2018-8-9 15:19
cat /proc/bus/input/devices  查看对应的节点

root@am437x-evm:/# cat /proc/bus/input/devices
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="ADS7846 Touchscreen"
P: Phys=spi1.0/input0
S: Sysfs=/devices/platform/44000000.ocp/481a2000.spi/spi_master/spi1/spi1.0/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003


root@am437x-evm:/# od -x /dev/input/event1
^C
root@am437x-evm:/# cat /proc/interrupts | grep ads7846
210:         81  48322000.gpio   7 Edge      ads7846
root@am437x-evm:/# cat /proc/interrupts | grep ads7846
210:         91  48322000.gpio   7 Edge      ads7846
root@am437x-evm:/# cat /proc/interrupts | grep ads7846
210:         95  48322000.gpio   7 Edge      ads7846

作者: 武雨天    时间: 2018-8-9 15:38
vefone 发表于 2018-8-9 15:19
cat /proc/bus/input/devices  查看对应的节点

有中断  没有事件
作者: 武雨天    时间: 2018-8-9 16:32
vefone 发表于 2018-8-9 15:19
cat /proc/bus/input/devices  查看对应的节点

root@am437x-evm:/dev/input# ls
by-path       event0        event1        mice          mouse0        touchscreen0
root@am437x-evm:/dev/input# cd /
root@am437x-evm:/# od -x /dev/input/event0
^C

作者: czs----Tronlong    时间: 2018-8-11 17:31
您好,您是将Linux-3.14的设备树文件直接拿到Linux-4.14下使用,需要重新确认设备树下的SPI节点是否配置正确。





欢迎光临 嵌入式开发者社区 (https://51dsp.net/) Powered by Discuz! X3.4