Hello,
I am using imx8mp custom board and i have interfaced atmel touch with custom board.
below is device tree configuration:
&i2c5 {
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c5>;
status = "okay";
touchscreen@4b {
compatible = "atmel,maxtouch";
reg = <0x4b>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_touch_p1>;
interrupt-parent = <&gpio2>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
pinctrl_i2c5: i2c5grp {
fsl,pins = <
MX8MP_IOMUXC_SD1_CLK__I2C5_SCL 0x400001c2
MX8MP_IOMUXC_SD1_CMD__I2C5_SDA 0x400001c2
>;
};
pinctrl_touch_p1: touchgrp {
fsl,pins = <
MX8MP_IOMUXC_SD1_DATA2__GPIO2_IO04 0x16 /* TS_CHG */
MX8MP_IOMUXC_SD1_DATA3__GPIO2_IO05 0x16 /* TS_RST */
>;
};
Debug UART log
[ 2.223601][ T1] atmel_mxt_ts 4-004b: __mxt_read_reg: i2c transfer failed (-6)
[ 2.231710][ T1] atmel_mxt_ts 4-004b: mxt_bootloader_read: i2c recv failed (-6)
[ 2.239300][ T1] atmel_mxt_ts 4-004b: Trying alternate bootloader address
[ 2.247182][ T1] atmel_mxt_ts 4-004b: mxt_bootloader_read: i2c recv failed (-6)
Below are the i2c lines voltages:
I2C_SCL -> 3.19v (Pull-up 4.7k Resistor included)
I2C_SDA -> 3.13v (Pull-up 4.7k Resistor included)
After this configuration touch is not working, Please suggest suitable solution.
Thanks,
we have tested also this: but results and logs are same.
pinctrl_i2c5: i2c5grp {
fsl,pins = <
MX8MP_IOMUXC_SD1_CLK__I2C5_SCL 0x400001c3
MX8MP_IOMUXC_SD1_CMD__I2C5_SDA 0x400001c3
>;
};