USB Cellular Modem with imx8mp

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

USB Cellular Modem with imx8mp

252 Views
Wobaffet
Senior Contributor I

Hello,

We are trying to bring up Quectel eg915 cellular module connected to imx8mp via USB interface. We can't see any device generated on lsusb command or in /dev/ttyUSBx . We can communicate with the module via UART, which is up and running. But no device is detected. Here is our device tree for the USB and kernel config is attached. Could you guide us where could be the issue is?

&usb3_phy1 {
        fsl,phy-tx-preemp-amp-tune = <3>;
        fsl,phy-tx-vref-tune = <0xb>;
        status = "okay";
        vbus-supply=<&reg_usb_vbus>;
};

&usb3_1 {
        dr_mode = "host";
        status = "okay";
};
&usb_dwc3_1 {
        dr_mode = "host";
        status = "okay";
};
reg_usb_vbus: regulator-vbus {
                compatible = "regulator-fixed";
                regulator-name = "USB-VBUS";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                enable-active-high;
                regulator-always-on;
 };
root@imx8mp-lpddr4-evk:~# echo -e "AT+QCFG=\"usbnet\"?\r" | picocom -b 115200 -qrx 1000 /dev/ttymxc2 > foo.txt
root@imx8mp-lpddr4-evk:~# cat foo.txt 
AT+QCFG="usbnet"?
+QCFG: "usbnet",1

OK
root@imx8mp-lpddr4-evk:~# echo -e "AT+QGMR\r" | picocom -b 115200 -qrx 1000 /dev/ttymxc2 > foo.txt
root@imx8mp-lpddr4-evk:~# cat foo.txt 
AT+QGMR
EG915NEUAGR03A05M16_01.001.01.001

OK
root@imx8mp-lpddr4-evk:~# echo -e "AT+CFUN?\r" | picocom -b 115200 -qrx 1000 /dev/ttymxc2 > foo.txt
root@imx8mp-lpddr4-evk:~# cat foo.txt 
AT+CFUN?
+CFUN: 1

OK
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:~# ls /sys/bus/usb/drivers
cdc_acm    cdc_mbim  cdc_wdm   hub	    option    r8152	 rndis_host  usb	  usb_debug	  usb_serial_simple  usbhid
cdc_ether  cdc_ncm   ftdi_sio  io_edgeport  qcserial  r8153_ecm  uas	     usb-storage  usb_ehset_test  usbfs		     usbserial_generic

Thanks!

Best Regards.

0 Kudos
Reply
3 Replies

175 Views
Wobaffet
Senior Contributor I

reminder.

0 Kudos
Reply

232 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

That depend of your modem model, since USB has marked as none or X in the kernel configuration file.

Regards

0 Kudos
Reply

230 Views
Wobaffet
Senior Contributor I

Hello, Thank you for the answer. What do you mean by USB has marked as none, or X. We are using eg915N from quectel, here is the driver info that module uses.

0 Kudos
Reply