Other Parts Discussed in Thread: TUSB9260, PCM2906C
Tool/software: Linux
Dear Specialists:
Strange issue. Signals from gpio0 bank cannot wake-up the system when usb1 connected to a module using Host mode.
I'm using Linux(kernel 4.14.71) based on ROCESSOR-SDK-AM335X( kernel 4.14.y branch) to run on a custom board , Processor is AM3352, and the usb1 is designed to connect to an Am Telecom (amm570)LTE module, everything goes well except the gpio0 to wake-up system from standby mode.
1, when comment out the usb1 section in arch/arm/boot/dts/my_board,dts, that is meaning not use usb1 connection. gpio0 (number 23)from a button can wakeup the system( using command as follow) immediately
rtcwake -d rtc0 -m standby -s 10
2, but when add the usb1 section to the board's devicestree file, the gpio0(number 23 , also number 22) signals can not wake up the system)
&usb1_phy {
status = "okay";
};
&usb1 {
status = "okay";
dr_mode = "host";
};
3, When using another version Linux kernel . ROCESSOR-SDK-AM335X( kernel 3.14.y ) , everything is OK no matter using usb1 or not.
I think there is no problem in hardware design, according to the checklist ( http://processors.wiki.ti.com/index.php/AM335x_Schematic_Checklist#USB
and the success use case in version ROCESSOR-SDK-AM335X( kernel 3.14.y )
Boot logs:
[ 3.612483] remoteproc remoteproc0: powering up wkup_m3
[ 3.623828] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 3.629824] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 3.630140] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.630155] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.630165] usb usb1: Product: MUSB HDRC host driver
[ 3.630176] usb usb1: Manufacturer: Linux 4.14.71 musb-hcd
[ 3.630185] usb usb1: SerialNumber: musb-hdrc.0
[ 3.631056] hub 1-0:1.0: USB hub found
[ 3.631116] hub 1-0:1.0: 1 port detected
[ 3.649802] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 3.657315] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[ 3.657575] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.657590] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.657600] usb usb2: Product: MUSB HDRC host driver
[ 3.657610] usb usb2: Manufacturer: Linux 4.14.71 musb-hcd
[ 3.657620] usb usb2: SerialNumber: musb-hdrc.1
[ 3.658441] hub 2-0:1.0: USB hub found
[ 3.658502] hub 2-0:1.0: 1 port detected
[ 3.673888] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 500000 KHz
[ 3.753106] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 216864
[ 3.761800] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 600000 KHz
[ 3.771436] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[ 3.778739] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 3.790167] ubi0: attaching mtd0
[ 4.100361] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[ 4.260516] usb 2-1: New USB device found, idVendor=0424, idProduct=2514
[ 4.272344] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.288921] hub 2-1:1.0: USB hub found
[ 4.296405] hub 2-1:1.0: 4 ports detected
[ 4.596355] usb 2-1.1: new full-speed USB device number 3 using musb-hdrc
[ 4.716418] usb 2-1.1: New USB device found, idVendor=08bb, idProduct=29c6
[ 4.728344] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.744340] usb 2-1.1: Product: USB AUDIO CODEC
[ 4.756339] usb 2-1.1: Manufacturer: BurrBrown from Texas Instruments
[ 4.776559] input: BurrBrown from Texas Instruments USB AUDIO CODEC as /devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1/usb2/2-1/2-1.1/2-1.1:1.3/0003:08BB:29C6.0001/input/input0
[ 4.872587] hid-generic 0003:08BB:29C6.0001: input,hidraw0: USB HID v1.00 Device [BurrBrown from Texas Instruments USB AUDIO CODEC] on usb-musb-hdrc.1-1.1/input3
[ 4.984358] usb 2-1.3: new high-speed USB device number 4 using musb-hdrc
[ 5.100909] usb 2-1.3: New USB device found, idVendor=0451, idProduct=926b
[ 5.112345] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.128340] usb 2-1.3: Product: TUSB9260 Boot Loader
[ 5.140340] usb 2-1.3: Manufacturer: Texas Instruments
[ 5.152341] usb 2-1.3: SerialNumber: TUSB9260BL01
[ 5.164470] hid-generic 0003:0451:926B.0002: hiddev0,hidraw1: USB HID v1.10 Device [Texas Instruments TUSB9260 Boot Loader] on usb-musb-hdrc.1-1.3/input0
root@/home/user1# lsusb
Bus 002 Device 004: ID 0451:926b Texas Instruments, Inc. TUSB9260 Boot Loader
Bus 002 Device 003: ID 08bb:29c6 Texas Instruments PCM2906C Audio CODEC
Bus 002 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub