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!
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
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igor,
I added the code imx7d-sdb.dts as follow:
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
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