Hi,
I am trying to interface ILI2130 ilitek touch driver with the am62x SK EVK, loaded the driver as a kernel module, made physical connections such that the device occupies i2c-0 bus (gpio pins), also altered the dts accordingly
main_i2c0_pins_default: main-i2c0-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
AM62X_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
>;
};
touch_pins_default: touch-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x1d0, PIN_OUTPUT, 7) /* (A15) GPIO1_22 UART0_CTSN, Touch Reset */
AM62X_IOPAD(0x1d4, PIN_OUTPUT, 7) /* (B15) GPIO1_23 UART0_RTSN, Touch Interrupt */
>;
};
};
&main_i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&main_i2c0_pins_default
&touch_pins_default>;
clock-frequency = <400000>;
status = "okay";
ili2130@41{
compatible = "ilitek_ts_i2c,ilitek,ili213x";
reg = <0x41>;
interrupt-parent = <&main_gpio1>;
interrupts = <22 0>;
irq-gpios = <&main_gpio1 23 0>;
reset-gpios = <&main_gpio1 22 0>;
};
};
booted the system and tried but the device is irresponsive for the touch inputs, and also the module is recognized as a kernel module at 0x41of i2c0 bus as UU at sometimes and sometimes not.
Any suggestions on what should be done right ?
Thanks.