Hello, we are trying to port cellular module from quectel with USB interface,
on the /dev/ directory some devices should be created like /dev/cdc-wdmX but we don't see anything on the USB side, here are some of the logs attached:
root@imx8mp-lpddr4-evk:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@imx8mp-lpddr4-evk:~# dmesg | grep usb
[ 0.086528] usbcore: registered new interface driver usbfs
[ 0.086572] usbcore: registered new interface driver hub
[ 0.086600] usbcore: registered new device driver usb
[ 1.381017] usbcore: registered new interface driver r8152
[ 1.386568] usbcore: registered new interface driver qmi_wwan
[ 1.437731] usbcore: registered new interface driver cdc_acm
[ 1.451441] usbcore: registered new interface driver cdc_wdm
[ 1.457251] usbcore: registered new interface driver uas
[ 1.462612] usbcore: registered new interface driver usb-storage
[ 1.468682] usbcore: registered new interface driver usbserial_generic
[ 1.475243] usbserial: USB Serial support registered for generic
[ 1.481280] usbcore: registered new interface driver usb_debug
[ 1.487136] usbserial: USB Serial support registered for debug
[ 1.492994] usbserial: USB Serial support registered for xhci_dbc
[ 1.499115] usbcore: registered new interface driver ftdi_sio
[ 1.504884] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.512220] usbcore: registered new interface driver option
[ 1.517814] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.524805] usbcore: registered new interface driver qcserial
[ 1.530572] usbserial: USB Serial support registered for Qualcomm USB modem
[ 1.537563] usbcore: registered new interface driver usb_serial_simple
[ 1.544113] usbserial: USB Serial support registered for carelink
[ 1.550228] usbserial: USB Serial support registered for zio
[ 1.555906] usbserial: USB Serial support registered for funsoft
[ 1.561940] usbserial: USB Serial support registered for flashloader
[ 1.568313] usbserial: USB Serial support registered for google
[ 1.574254] usbserial: USB Serial support registered for libtransistor
[ 1.580802] usbserial: USB Serial support registered for vivopay
[ 1.586829] usbserial: USB Serial support registered for moto_modem
[ 1.593119] usbserial: USB Serial support registered for motorola_tetra
[ 1.599759] usbserial: USB Serial support registered for nokia
[ 1.605610] usbserial: USB Serial support registered for novatel_gps
[ 1.611985] usbserial: USB Serial support registered for hp4x
[ 1.617754] usbserial: USB Serial support registered for suunto
[ 1.623695] usbserial: USB Serial support registered for siemens_mpi
[ 1.630081] usbcore: registered new interface driver usb_ehset_test
[ 1.636385] i2c-core: driver [usb3503] registered
[ 1.768100] usbcore: registered new interface driver usbhid
[ 1.773685] usbhid: USB HID core driver
[ 2.584206] imx8mq-usb-phy 381f0040.usb-phy: supply vbus not found, using dummy regulator
[ 2.592733] imx8mq-usb-phy 382f0040.usb-phy: supply vbus not found, using dummy regulator
[ 2.698075] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.774164] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
And here is our defconfig:
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USB_SERIAL_QUALCOMM=y
CONFIG_WWAN=y
CONFIG_USB_NET_QMI_WWAN=y
CONFIG_PPP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_USB_ACM=y
CONFIG_USB_SERIAL_DEBUG=y
What could be the issue?
Thanks!
reminder
Which version BSP are you using? How about your usb design in your board?
We re using kernel version 5.15 we are on kirkstone branch, developing with yocto.
root@imx8mp-lpddr4-evk:~# cat /sys/kernel/debug/usb/devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.71+ xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.71+ xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.71+ xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.2.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.71+ xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.2.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
We are using USB with minimal configuration like attached below.
For the USB2_VBUS you DNP the R184, Recommend you add it.
Yes, we've add R184. But still our module is not being recognized.
Before configuring device tree, lsusb command were outputting:
root@imx8mp-lpddr4-evk:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
After devicetree update for USB 2: we get like I've posted earlier. I think USB is up and working but option driver is not working even though I've added vid and pid information that quectel provided.
root@imx8mp-lpddr4-evk:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Here are the patches that quectel provided.
What could be the issue or missing configuration?
Thanks!
reminder