AnsweredAssumed Answered

Why doesn't the tsc2007 touchscreen device appear? iMX6 Sabre Solox Eval Board

Question asked by Chris Kolegraff on Aug 5, 2016
Latest reply on Aug 9, 2016 by Chris Kolegraff


Hello,

We're using the iMX6 Sabre Solox Eval Board and are using a tsc2007 touchscreen. We used the Yocto Project to configure our own image (using fsl-image-gui) to have the tsc2007 kernel module installed. We also disabled the camera module, as they both use the same port.

 

uname -a:

Linux imx6sxsabresd 3.14.28-1.0.0_ga+g91cf351 #1 SMP PREEMPT Thu Aug 4 14:38:33 PDT 2016 armv7l GNU/Linux

 

modinfo tsc2007:

filename:       /lib/modules/3.14.28-1.0.0_ga+g91cf351/kernel/drivers/input/touchscreen/tsc2007.ko

license:        GPL

description:    TSC2007 TouchScreen Driver

author:         Kwangwoo Lee <kwlee@mtekvision.com>

srcversion:     FC0CD285A907DAF3E9545AF

alias:          i2c:tsc2007

alias:          of:N*T*Cti,tsc2007*

depends:

intree:         Y

vermagic:       3.14.28-1.0.0_ga+g91cf351 SMP preempt mod_unload modversions ARMv7 p2v8

 

The Build Process:

MACHINE=imx6sxsabresd source fsl-setup-release.sh -b build -e fb

bitbake -c menuconfig linux-imx (Then we configure the kernel)

cp -f tmp/work/imx6sxsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/.config tmp/work/imx6sxsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/defconfig

bitbake fsl-image-gui

And that builds everything fine.

 

Once we put the image on an SD Card and boot it on the Eval Board, we run 'modprobe tsc2007', and it loads the module just fine as well. It shows up when you run 'lsmod'

root@imx6sxsabresd:/# lsmod

Module                  Size  Used by

tsc2007                 4637  0

mxc_dcic                5887  0

evbug                   1850  0

 

The device itself shows up in the i2c interface with i2cdetect

root@imx6sxsabresd:/dev/input# i2cdetect -y 0

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          -- -- -- -- -- UU -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- -- --

 

 

We're using a custom made adaptor board for a 320x240@60fps RGB565 LCD monitor hooked into the LCD Expansion Port (J11)

 

In our U-Boot we set bootargs

setenv bootargs video=mxcfb0:dev=lcd, 320x240@60,if=RGB565

saveenv

boot

 

Is there something we're missing? Are there patches we need for the tsc2007 driver? We didn't modify any of the source code for the build. Is there a specific configuration we need to set in the modconfig for the kernel? Is there a specific hardware pin we need to power on/off inorder for the image to recognize the device in the /dev/input directory, or do we need to make our own handler for that?

Outcomes