AnsweredAssumed Answered

elan touch driver error

Question asked by Arun Kamath on Jun 30, 2017
Latest reply on Jul 25, 2017 by Shrikant Bobade

Hi,

 

I am using the iMX7 sabre board and we have connected the touch screen to the i2c bus on the EPD interface,

I have updated the device tree imx7d-sdb.dts as per the imx7-sdb-epdc.dtsi as below

 

&i2c3 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";

elan@38 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_epdc_elan_touch>;
compatible = "elan,elan-touch";
reg = <0x38>;                                    //Am guessing this would be the slave address?
interrupt-parent = <&gpio6>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
gpio_elan_cs = <&gpio6 13 0>;
gpio_elan_rst = <&gpio6 15 0>;
gpio_intr = <&gpio6 12 0>;
status = "okay";
};

sii902x: sii902x@39 {
compatible = "SiI,sii902x";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sii902x>;
interrupt-parent = <&gpio2>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
mode_str ="1280x720M@60";
bits-per-pixel = <16>;
reg = <0x39>;
status = "disabled";
};

max17135: max17135@48 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_max17135>;
compatible = "maxim,max17135";
reg = <0x48>;
status = "okay";

vneg_pwrup = <1>;
gvee_pwrup = <2>;
vpos_pwrup = <10>;
gvdd_pwrup = <12>;
gvdd_pwrdn = <1>;
vpos_pwrdn = <2>;
gvee_

 

I get the below error in the driver.

 

elan-touch 2-0038: elan - Read Hello Packet Failed
elan-touch: probe of 2-0038 failed with error -22

 

Can you please help me understand if the interrupts are set right? if so what could be the issue?

 

Thanks

Arun

 

igorpadykov imx7 dts imx7d gpio

Outcomes