Tool/software: Linux
Dear all,
I have a problem trying to remote wakeup the AM335x processor using a USB keyboard. Let explain me first the setup. So we have the following topology
AM335x usb1 <----> USB HUB (USB2512B)* <---> USB PORT0 <----> USB KEYBOARD
* Note that usb1_drvvbus is connected to the reset of the USB HUB.
For USB Remote Wakeup, I ran the commands below before entering into standby mode.
echo enabled > /sys/bus/platform/devices/47401b00.usb-phy/power/wakeup echo enabled > /sys/bus/usb/devices/usb2/power/wakeup echo enabled > /sys/bus/usb/devices/2-1/power/wakeup
After entering into standby mode and pressing a key nothing happened. I observed that when the system goes to standby mode, usb1_drvvbus goes low so it resets the hub and disconnects the VBUS on port0, so I configured usb1_drvvbus as gpio instead. With this change the HUB and VBUS is available on port0 after entering into standby mode. but the problem now is that it resumes without pressing any key. Any idea on what is happening ?
# echo mem > /sys/power/state [ 441.867362] PM: Syncing filesystems ... done. [ 441.900944] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 441.911242] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 441.921784] Suspending console(s) (use no_console_suspend to debug) [ 441.948555] PM: suspend of devices complete after 18.079 msecs [ 441.950500] PM: late suspend of devices complete after 1.919 msecs [ 441.952822] PM: noirq suspend of devices complete after 2.301 msecs [ 441.952830] Disabling non-boot CPUs ... [ 441.952838] PM: Successfully put all powerdomains to target state [ 441.952838] PM: Wakeup source USB1_PHY [ 441.979931] PM: noirq resume of devices complete after 26.956 msecs [ 441.981693] PM: early resume of devices complete after 1.548 msecs [ 441.982756] net eth0: initializing cpsw version 1.12 (0) [ 441.982766] net eth0: initialized cpsw ale version 1.4 [ 441.982772] net eth0: ALE Table size 1024 [ 442.057419] SMSC LAN8710/LAN8720 4a101000.mdio:02: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:02, irq=-1) [ 442.057547] libphy: PHY 4a101000.mdio:01 not found [ 442.057556] net eth0: phy "4a101000.mdio:01" not found on slave 1, err -19 [ 444.107287] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 447.646615] PM: resume of devices complete after 5665.396 msecs [ 447.768192] Restarting tasks ... [ 447.786823] usb 2-1: USB disconnect, device number 15 [ 447.799181] done. [ 447.813631] usb 2-1.2: USB disconnect, device number 16 root@sl50:/home/tcl# [ 448.111295] usb 2-1: new high-speed USB device number 17 using musb-hdrc [ 448.267170] usb 2-1: New USB device found, idVendor=0424, idProduct=2514 [ 448.274254] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 448.302024] hub 2-1:1.0: USB hub found [ 448.316394] hub 2-1:1.0: 4 ports detected