10.1 inch Capacitive Touch and Display Not Working

I cannot operate the Capacitive touch module. Can you share the correct configuration settings with us? What are the steps we need to take?
I arranged the Device tree for multi touch as follows.

atmel_mxt_ts: atmel_mxt_ts@4a {
compatible = "atmel,maxtouch";
reg = <0x4a>;
interrupt-parent = <&gpio6>;
interrupts = <10 IRQ_TYPE_EDGE_FALLING>;
- status = "disabled";
+ status = "okay";
};    

In order for the display to work properly, I have arranged the Device tree as follows.

lvds-channel@0 {
reg = <0>;
fsl,data-mapping = "spwg"; /* "jeida"; */
- fsl,data-width = <18>;
+ fsl,data-width = <24>;
crtc = "ipu2-di1";
primary;
status = "okay";

The screen and multi-touch do not work. What adjustments should I make to the B2Qt image?

HI @yusufsatilmis and Welcome to the Toradex Community!

Could you provide the exact software version of your module ( uname -a )?
Please share the dmesg.log in a text file?

Thanks and best regards,
Jaski

I cannot operate the Capacitive touch module. Can you share the correct configuration settings with us? What are the steps we need to take?

That should really be super easy. Let me show you…

I arranged the Device tree for multi touch as follows.
atmel_mxt_ts: atmel_mxt_ts@4a {
compatible = “atmel,maxtouch”;
reg = <0x4a>;
interrupt-parent = <&gpio6>;
interrupts = <10 IRQ_TYPE_EDGE_FALLING>;

  •           status = "disabled";
    
  •           status = "okay";
    

};

Yes, just replacing disabled with okay should do the trick. However, I am not sure what exact device tree you took as a base as yours is missing the reset pin part. Plus better would be to explicitly do the pin muxing. Find attached patch. The base I used is the following:

http://git.toradex.com/cgit/linux-toradex.git/log/?h=toradex_4.9-2.3.x-imx

In order for the display to work properly, I have arranged the Device tree as follows.
lvds-channel@0 {
reg = <0>;
fsl,data-mapping = “spwg”; /* “jeida”; */
- fsl,data-width = <18>;
+ fsl,data-width = <24>;
crtc = “ipu2-di1”;
primary;
status = “okay”;

Yes, also this is sufficient. However, we recommend setting the native-mode directly in the device tree while you’re anyway at it.

The screen is working properly now. But the touch doesn’t work. The error I wrote below
occurs for the i2c port.

dmesg > dmesg.txt

[ 6.453464] atmel_mxt_ts 0-004a: __mxt_read_reg: i2c transfer failed (-6)
[ 6.475050] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 6.487348] atmel_mxt_ts 0-004a: Trying alternate bootloader address
[ 6.499996] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)

[    6.210986] atmel_mxt_ts 1-004a: Falling back to user helper
[    6.723798] atmel_mxt_ts 1-004a: Touchscreen size X1279Y799
[    6.745972] input: Atmel maXTouch Touchscreen as /devices/soc0/soc/2100000.aips-bus/21a0000.i2c/i2c-1/1-004a/input/input2
[    6.774404] atmel_mxt_ts 1-004a: Family: 164 Variant: 11 Firmware V1.2.AA Objects: 41

BTW: That is what I set in U-Boot:

setenv fdt_file imx6q-apalis-ixora-v1.2.dtb
setenv vidargs 'mxc_hdmi.only_cea=1 video=mxcfb0:dev=ldb,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M'
saveenv

And don’t forget to actually deploy the imx6q-apalis-ixora-v1.2.dtb to /media/mmcblk0p1 on the target.

root@b2qt-apalis-imx6:~# uname -a
Linux b2qt-apalis-imx6 4.14.117-0+ge43e3a26e1b7 #1 SMP Fri Dec 13 13:05:10 UTC 2019 armv7l armv7l armv7l GNU/Linux

link text

dmesg no touch

dmesg touch

Currently on b2qt image the screen works.
But when I plug in the touch cord, no image appears on the screen. The screen is waiting Black.
When I remove the touch cord, the screen works properly.

I added the dmesg files. What would be the reason?

HI @yusufsatilmis

Could you share some pictures showing how you connect display and touch interfaces on both sides?

Thanks and best regards,
Jaski

How did you solve the issue? I have the same issue, as soon as I connect the touch cord and the atmel_mxt_ts recognizes the touchscreen, the screen gets black. When the cord is removed and atmel_mxt_ts fails recognizing the touch, the screen works fine.