-1

I'm hoping some of you guys can help me with the project I'm working on.

I have an ilitek 2130 i2c based touchpanel that I'm trying to use with my Android dev kit.

This is what I've done so far:

• Updated the trinket-idp.dtsi to add the following:

               ilitek@41 {
                              compatible = "tchip,ilitek";
                              reg = <0x41>;
                              interrupt-parent = <&tlmm>;
                              interrupts = <88 0x2008>;
                              vdd_ana-supply = <&eldo1>;
                              vcc_i2c-supply = <&L12A>;
                              ilitek,irq-gpio = <&tlmm 88 0x2008>;
                              ilitek,reset-gpio  = <&tlmm 87 0x0>;
                              ilitek,vbus = "vcc_i2c";
                              ilitek,vdd = "vdd";
                              ilitek,name = "ilitek_i2c";
                              pinctrl-names = "pmx_ts_active","pmx_ts_suspend";
                              pinctrl-0 = <&ts_int_active &ts_reset_active>;
                              pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
               };

• Copied the contents of the driver folder to …/input/touchscreen folder name ilitek_i2c and created a Kconfig file

config TOUCHSCREEN_ILITEK
    bool "Ilitek Touchscreen"
    depends on I2C
   default n
    help
      Say Y here if you have Ilitek touch panel.
      If unsure, say N.

config TOUCHSCREEN_FTS_DIRECTORY
    string "Ilitek ts directory name"
    default "ilitek_i2c"
    depends on TOUCHSCREEN_ILITEK

• Modified the make and Kconfig in …/input/touchscreen to add the following lines

config CONFIG_TOUCHSCREEN_ILITEK
       bool "Ilitek Touchscreen"
       depends on I2C
       help
         Say Y here if you have a Ilitek Touchscreen.

         If unsure, say N.
                              
source "drivers/input/touchscreen/ilitek_i2c/Kconfig"
endif

added line to makefile

    obj-$(CONFIG_TOUCHSCREEN_ILITEK)                    += ilitek_i2c/

• Compiled and built but it still didn’t work.

Note that the i2c 1 port is already setup, as this is what the default touch panel uses. the address of the touch panel I want to use is being detected when I invoke i2cdetect via adb shell on the android device.

Am I missing anything else that requires modifying? what's the usual steps when installing i2c touch panel drivers on android?

Thank you for your time and efforts.

anigma
  • 1

0 Answers0