The Driver of Elan TouchScreen doesn't work on MCIMX7SABRE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The Driver of Elan TouchScreen doesn't work on MCIMX7SABRE

798 Views
shawn_lu
Contributor I

Hi ,

The driver doesn't work on MCIMX7SABRE for the external interrupt of Gpio<6,12> is not trigered. I have tested GPIO<6-14>, and the problem is the same. 

How to resolve it? 

Thanks! 

0 Kudos
3 Replies

543 Views
igorpadykov
NXP Employee
NXP Employee

Hi ming

please check gpio interrupt working example on Sabre board

pinctrl_epdc_elan_touch: epdc_elan_touch_grp.. in   imx7d-sdb.dts

linux-2.6-imx.git - Freescale i.MX Linux Tree 

use latest Linux 4.1.15_1.2.0 BSP on

i.MX 6 Series Software and Development Tool|NXP 

also may be useful to check:

mx6-wandboard/elan_ts.c at master · smartpathinfosystemsindia/mx6-wandboard · GitHub 

ENGR00213751: imx6sl: Add ELAN touchscreen support on EINK-DC3 board (e6ed0187) · Commits · ARM / qm... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

543 Views
shawn_lu
Contributor I

Hi igor,

I added the code  imx7d-sdb.dts as follow:

   elan@10{

         compatible = "elan,elan-touch";

         reg = <0x10>;

         interrupt-parent = <&gpio6>;

         interrupts = <12 2>;

         gpio_elan_cs = <&gpio6 13 0>;

         gpio_elan_rst = <&gpio6 15 0>;

         gpio_elan_intr = <&gpio6 12 0>;

         status = "okay";

   }

The interrupt of GPIO<6 12> is registered and the Interrupter Number is 332.  But when The GPIO<6 12> is pulled down, The function, elan_touch_ts_interrupt, is not called.   If I use the GPIO<5, 11> as interrupt, this driver is okay. 

 Is the gpio<6 12 >  special?

Best regards

Lu Ming

0 Kudos

543 Views
czur
Contributor III

Hi Lu,

where you able to configure the touchdcreen with elan_touch driver?

Also did u have to update the reg = <0x10>; value in your data tree, is'nt that the slave address?

Thanks

0 Kudos