Lines Matching +full:usb +full:- +full:switch
6 -----------------------------------
12 -------------------------
29 otg-rev = <0x0200>;
30 adp-disable;
33 -------------------
38 2) Connect 2 boards with usb cable: one end is micro A plug, the other end
41 The A-device (with micro A plug inserted) should enumerate B-device.
43 3) Role switch
45 On B-device::
49 B-device should take host role and enumerate A-device.
51 4) A-device switch back to host.
53 On B-device::
57 or, by introducing HNP polling, B-Host can know when A-peripheral wishes to
58 be in the host role, so this role switch also can be triggered in
59 A-peripheral side by answering the polling from B-Host. This can be done on
60 A-device::
64 A-device should switch back to host and enumerate B-device.
66 5) Remove B-device (unplug micro B plug) and insert again in 10 seconds;
67 A-device should enumerate B-device again.
69 6) Remove B-device (unplug micro B plug) and insert again after 10 seconds;
70 A-device should NOT enumerate B-device.
72 if A-device wants to use bus:
74 On A-device::
79 if B-device wants to use bus:
81 On B-device::
85 7) A-device power down the bus.
87 On A-device::
91 A-device should disconnect with B-device and power down the bus.
93 8) B-device does data pulse for SRP.
95 On B-device::
99 A-device should resume usb bus and enumerate B-device.
102 ----------------------
103 "On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification
106 2. How to enable USB as system wakeup source
107 --------------------------------------------
108 Below is the example for how to enable USB as system wakeup source
117 echo enabled > /sys/bus/platform/devices/2184000.usb/power/wakeup
125 echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
129 echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
131 If the system has only one usb port, and you want usb wakeup at this port, you
132 can use the below script to enable usb wakeup::
134 for i in $(find /sys -name wakeup | grep usb);do echo enabled > $i;done;