IMX8mm-evk & Atmel Maxtouch touchscreen problem

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

IMX8mm-evk & Atmel Maxtouch touchscreen problem

1,161 Views
Tantawat
Contributor I

Hi,

I'm currently trying to use a Atmel MXT224 touchscreen with IMX8mm-evk but when I boot with my board and panel the touchscreen not working but after approximately 60 seconds I get this message :

 [  66.546655] atmel_mxt_ts 2-004a: Touchscreen size X479Y853
 [  66.552388] input: Atmel maxTouch Touchscreen as /devices/platform/soc@0:bus@30800000/30a40000.i2c/12c-2/2-004a/input/input2
 

After get this message the touchscreen work fine. So, I want to know why It's come late and how to fix this to get message when panel start.

I have try many config in imx8mm-evk.dts but can not solve it.

Does anyone have any insight about this issue or have any advice to solved?

This is my config about atmel mxt touchscreen and my panel in imx8mm-evk.dts :

&i2c3 {

    atmel_mxt_ts@4a {
        compatible = "atmel,maxtouch";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_mxt_ts>, <&pinctrl_touch_reset>;
        reg = <0x4a>;
        interrupt-parent = <&gpio1>;
        interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
        status = "okay";
    };

};

&iomuxc {

     pinctrl_mipi_dsi_en: mipi_dsi_en {
         fsl,pins = <
             /*MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x16*/
             MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3       0x05
         >;
     };

     pinctrl_mxt_ts: maxtouch_dsx_iogrp {
         fsl,pins = <
              MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12    0x19 /* Touch int */
         >;
     };

     pinctrl_touch_reset: touchreset_dsx_iogrp {
         fsl,pins = <
              MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13    0x15 /* Touch rst */
         >;
     };

};

&mipi_dsi {
     status = "okay";

     panel@0 {
         compatible = "ili,ili9806e";
         reg = <0>;
         pinctrl-0 = <&pinctrl_mipi_dsi_en>;
         reset-gpio = <&gpio5 3 GPIO_ACTIVE_LOW>;
         dsi-lanes = <2>;
         video-mode = <2>;  /* 0: burst mode
                                          * 1: non-burst mode with sync event
                                          * 2: non-burst mode with sync pulse
                                          */
         panel-width-mm = <62>;
         panel-height-mm = <110>;
         status = "okay";
     };

};

Best regards

Tantawat

0 Kudos
2 Replies

1,136 Views
Tantawat
Contributor I

Hi igor

Thanks for your reply, I will try it.

And I want to know about the reset gpio is it have to use reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; in node of atmel_mxt_ts@4a or not.

 

Best regards

Tantawat

0 Kudos

1,144 Views
igorpadykov
NXP Employee
NXP Employee

Hi Tantawat

 

one can check with oscilloscope if MXT224 power-up sequence and reset conditions are properly

performed and try to debug, use for example

https://titanwolf.org/Network/Articles/Article?AID=157db860-a11c-4925-8411-4cdbb6610e38#gsc.tab=0

 

Best regards
igor

0 Kudos