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>;
};
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.