QUANTA Touchscreen doesn't work as input devise On MCIMX6Q-SDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QUANTA Touchscreen doesn't work as input devise On MCIMX6Q-SDB

2,072 Views
harasato
Contributor I

Hello,

I'm trying to use QUANTA Touchscreen in the MCIMX6Q-SDB with Linux 4.1.15_1.2.0 BSP.
It shows GUI by HDMI, but touch operation doesn't work.

I tried "udevadm monitor" command, and I think that QUANTA Touchscreen is NOT recognized as input device.

Here is udevadm monitor when insert QUANTA Touchscreen which is NOT RECOGNIZED as input device.
--------------------------
root@imx6qsabresd:~# udevadm monitor
usb 1-1.1: new full-speed USB device number 6 using ci_hdrc
KERNEL[66.072791] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.1 (usb)
KERNEL[66.073563] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
KERNEL[66.083532] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0408:3008.0004 (hid)
UDEV [66.087427] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.1 (usb)
UDEV [66.101953] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
UDEV [66.114206] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0408:3008.0004 (hid)
--------------------------


Here is udevadm monitor when insert MOUSE which is recognized as input device.
--------------------------
usb 1-1.4: new low-speed USB device number 6 using ci_hdrc
KERNEL[145.955615] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4 (usb)
UDEV [145.960840] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4 (usb)
KERNEL[145.963838] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/input: PixArt HP USB Optical Mouse as /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004/input/input11
ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.hid-generic 0003:0461:4E23.0004: input: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-ci_hdrc.0-1.4/input0
0 (usb)
KERNEL[145.979324] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004 (hid)
KERNEL[145.994584] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004/input/input11 (input)
UDEV [145.994778] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0 (usb)
KERNEL[145.996471] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004/input/input11/mouse1 (input)
KERNEL[145.996942] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004/input/input11/event4 (input)
UDEV [146.007025] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004 (hid)
UDEV [146.026037] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004/input/input11 (input)
UDEV [146.037018] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004/input/input11/mouse1 (input)
UDEV [146.039331] add /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4E23.0004/input/input11/event4 (input)
--------------------------


I also try lsusb command. QUANTA Touchscreen is recognized as a USB device.
--------------------------
root@imx6qsabresd:~# lsusb -v -s 001:003

Bus 001 Device 003: ID 0408:3008 Quanta Computer, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0408 Quanta Computer, Inc.
idProduct 0x3008
bcdDevice 2.10
iManufacturer 1 Quanta
iProduct 2 OpticalTouchScreen
iSerial 4 0000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 96mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 402
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 8
Device Status: 0x0001
Self Powered
--------------------------

Can anyone understand why QUANTA Touchscreen is not recognized as input device?

Best regards

0 Kudos
6 Replies

1,493 Views
harasato
Contributor I

I also tried to make loadable module "phy_mxs_usb" and "ci_hdrc_imx", but they don't work.

I saw the document below.

   i.MX Linux Reference Manual(Document Number: IMXLXRM Rev. 0, 07/2016)
   39.2.7 Loadable Module Support

I set the kernel configuration like below.

-------------

Device Drivers --->
[*] USB support --->
<M> EHCI HCD (USB 2.0) support
<M> ChipIdea Highspeed Dual Role Controller
[*] USB Physical Layer drivers --->
<M> Freescale MXS USB PHY support
<M> USB Gadget Support --->

-------------

I executed modprobe command, but it seems to be working.

I couldn't use HID mouse or keyboard, and I couldn't remove device.

-------------

root@imx6qsabresd:~# modprobe phy_mxs_usb
root@imx6qsabresd:~# modprobe ci_hdrc_imx


root@imx6qsabresd:~# modprobe -r ci_hdrc_imx
modprobe: FATAL: Module ci_hdrc_imx is builtin.
root@imx6qsabresd:~# modprobe -r phy_mxs_usb
modprobe: FATAL: Module phy_mxs_usb is builtin.

-------------

Could anyone help me?

Best regards
Satoshi

0 Kudos

1,493 Views
igorpadykov
NXP Employee
NXP Employee

Hi

seems USB Touchscreen HID is not supported by chipidea usb

driver (linux/drivers/usb/chipidea), please refer to attached Linux

Manual for details.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,493 Views
harasato
Contributor I

Hi, igorpadykov

Thank you for your reply.

I saw "i.MX_Linux_Reference_Manual.pdf" you attached but I cant catch the mean you said "seems USB Touchscreen HID is not supported by chipidea usb driver".

The document say, "Host mode-Supports HID (Human Interface Devices)".

"39.2.10.2 VBUS Control" refers about touch function, but I think it's for i.MX 6UltraLite EVK board.
My board is MCIMX6Q-SDB, and my imx6ul-14x14-evk.dts is shown below.

&tsc {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tsc>;
xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
measure-delay-time = <0xffff>;
pre-charge-time = <0xfff>;
status = "okay";
};

Is there something I misunderstood?

Best regards

0 Kudos

1,493 Views
igorpadykov
NXP Employee
NXP Employee

please check linux/drivers/usb/chipidea sources,

seems there are no touch usb hid sources.

Best regards
igor

0 Kudos

1,493 Views
harasato
Contributor I

Thank you for your reply.


I also tried other version showing follow.

(1)fsl-yocto-3.10.53-1.1.0
RESULT: doesn't work. same as fsl-yocto-4.1.15-1.2.0.

(2)L3.0.35_4.1.0_130816
RESULT: work well!

"i.MX 6 Linux Reference Manual" shows:
  fsl-yocto-3.10.53-1.1.0 and later version: "ARC USB Driver".
  L3.0.35_4.1.0_130816: "CHIPIDEA USB Driver"

I think the usb driver had changed. That's why USB Touchscreen HID doesn't work?
Is USB Touchscreen HID not supported any more?

Do you know some Touchscreen device which work with MCIMX6Q-SDB?

Best regards

0 Kudos

1,493 Views
igorpadykov
NXP Employee
NXP Employee

you are right, ltib L3.0.35 has different usb driver
and seems supports more features.

~igor

0 Kudos