This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x USB touchscreen issue



We are trying to Interface "AA104SL02" Mitsubishi 10.4" LCD on USB1 of AM335x board.

We have added all the required data to the kernel (linux-3.2), provided by Mitsubishi.

After booting the board LCD is working fin, But when we touch the LCD  we are getting the below error log:

*****************************************************************************************************

[ 1726.851226] usb 1-1: USB disconnect, device number 6
[ 1727.301055] usb 1-1: new full-speed USB device number 7 using musb-hdrc
[ 1727.442108] usb 1-1: New USB device found, idVendor=06d3, idProduct=6400
[ 1727.449157] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1727.456695] usb 1-1: Product: USB Touch (WinXP&7)
[ 1727.461639] usb 1-1: Manufacturer: MITSUBISHI ELECTRIC

******************************************************************************************************

We have added the below LCD USB touch related code to the kernel (linux-3.2)

*******************************************************************************************************

Modify below files and then re-build the kernel.
(1)drivers/hid/hid-ids.h

Add below command line
#define USB_VENDOR_ID_MITSUBISHI_ELECTRIC 0x06d3 #define

USB_DEVICE_ID_MITSUBISHI_ELECTRIC_USB_Touch_6400 0x6400

(2)drivers/hid/hid-core.c

Add Mitsubishi VENDOR ID and DEVICE ID in below statement static const struct hid_device_id hid_have_special_driver[] = { ... }, { HID_USB_DEVICE(USB_VENDOR_ID_MITSUBISHI_ELECTRIC,

USB_DEVICE_ID_MITSUBISHI_ELECTRIC_USB_Touch_6400 ) }

(3)drivers/hid/hid-multitouch.c

Add Mitsubishi VENDOR ID and DEVICE ID in below statement static const struct hid_device_id mt_devices[] = { ... }, { .driver_data = MT_CLS_DEFAULT, HID_USB_DEVICE(USB_VENDOR_ID_MITSUBISHI_ELECTRIC,

USB_DEVICE_ID_MITSUBISHI_ELECTRIC_USB_Touch_6400 ) }

***************************************************************************************************************

I am unable to find the USB touch controller of Mitsubishi under:

 -> Device Drivers -> Input device support -> Generic input layer -> Touchscreens

  • Hi,

    I don't understand - is the kernel provided by Mitsubishi?
  • Hi Biser,

    Thanks for the immediate reply.

    No, it is our customized AM335x based Kernel (Linux-3.2).
    We just added the below parameters of USB touch given by Mitsubishi:

    *******************************************************************************************************
    Modify below files and then re-build the kernel.
    (1)drivers/hid/hid-ids.h

    Add below command line
    #define USB_VENDOR_ID_MITSUBISHI_ELECTRIC 0x06d3 #define

    USB_DEVICE_ID_MITSUBISHI_ELECTRIC_USB_Touch_6400 0x6400

    (2)drivers/hid/hid-core.c

    Add Mitsubishi VENDOR ID and DEVICE ID in below statement static const struct hid_device_id hid_have_special_driver[] = { ... }, { HID_USB_DEVICE(USB_VENDOR_ID_MITSUBISHI_ELECTRIC,

    USB_DEVICE_ID_MITSUBISHI_ELECTRIC_USB_Touch_6400 ) }

    (3)drivers/hid/hid-multitouch.c

    Add Mitsubishi VENDOR ID and DEVICE ID in below statement static const struct hid_device_id mt_devices[] = { ... }, { .driver_data = MT_CLS_DEFAULT, HID_USB_DEVICE(USB_VENDOR_ID_MITSUBISHI_ELECTRIC,

    USB_DEVICE_ID_MITSUBISHI_ELECTRIC_USB_Touch_6400 ) }
    ***************************************************************************************************************

    Now the touch is working fine after the below parameter enabled in kernel "make menuconfig:
    -> Device Drivers -> HID Devices -> Special HID drivers ->HID Multitouch panels

    But still some times we are facing the below error while operating the USB touch:

    [ 1726.851226] usb 1-1: USB disconnect, device number 6
    [ 1727.301055] usb 1-1: new full-speed USB device number 7 using musb-hdrc
    [ 1727.442108] usb 1-1: New USB device found, idVendor=06d3, idProduct=6400
    [ 1727.449157] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 1727.456695] usb 1-1: Product: USB Touch (WinXP&7)
    [ 1727.461639] usb 1-1: Manufacturer: MITSUBISHI ELECTRIC
  • I have asked the USB experts to help on this.
  • Nagamahesh Gamidi said:
    No, it is our customized AM335x based Kernel (Linux-3.2).

    Where did you get the 3.2 kernel originally?

    Did MITSUBISHI claim this touch screen is supported in 3.2 kernel?