How to configure I2C based touch panel on SC668S-EM with SMART EVB G5


I’m hoping someone can point me towards the right direction.
I’m trying to use an i2c ILI2130 touch panel with the SC668S-EM (on SMART EVB G5).
This is what I’ve done so far:

  1. Ensure that hardware connections are there (reused the same touch panel connector) to use the same interrrupt and reset GPIO.

  2. Modify trinket-idp.dtsi file to include the ilitek touch panel used and added the following below:
    ilitek_ts@41 {
    compatible = “ilitek,ili2130”;
    reg = <0x41>;
    interrupt-parent = <&tlmm>;
    interrupts = <88 0x2008>;
    ilitek_ts,reset-gpio = <&tlmm 87 0x0>;
    ilitek_ts,irq-gpio = <&tlmm 88 0x2008>;
    //goodix,power-gpio = <&pm660l_gpios 3 0>;
    vdd_ana-supply = <&eldo1>;
    vcc_i2c-supply = <&L12A>;
    pinctrl-names = “pmx_ts_active”,“pmx_ts_suspend”;
    pinctrl-0 = <&ts_int_active &ts_reset_active>;
    pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;

  3. Modify the touch drivers makefile to include the ilitek touch panel used:

obj-$(CONFIG_TOUCHSCREEN_ILITEK_TS) += ilitek_ts_i2c.o

  1. Copied ilitek_ts_i2c.c to the touch drivers folder (kernel/msm-4.14/drivers/input/touchscreen/) source link below:
    ilitek_ts_i2c.c - drivers/input/touchscreen/ilitek_ts_i2c.c - Linux source code (v6.5) - Bootlin

After I compile and build, the touch panel still does not work, any ideas? Perhaps I’ve missed out some steps?

Thanks a lot

Can you make sure driver code is compiled?