i.MX8MM USB Device Mode Remote Wakeup

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

i.MX8MM USB Device Mode Remote Wakeup

290 Views
TomGibson
Contributor III

Hello,

I am trying to work out how to enable remote_wakeup support for the ci_udc peripheral mode driver in Yocto Linux on i.MX8M Mini. I can see in my Beagle USB Analyser the peripheral shows 'RemoteWakeup' is not supported. I am not sure if this is something I need to enable in my device tree, or at runtime. The USB controller on my i.MX8M Mini is configured already with dr_mode = "peripheral";

Thanks in advance.

Screenshot from 2024-11-27 20-07-44.png

Labels (1)
0 Kudos
Reply
1 Reply

255 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Here are my test steps with USB keyboard wakeup based on i.MX8MP EVK. The steps on i.MX8MM should be very similiar

1. DTS

 

&usb_dwc3_0 {
	dr_mode = "otg";
	hnp-disable;
	srp-disable;
	adp-disable;
	usb-role-switch;
	role-switch-default-mode = "none";
	snps,dis-u1-entry-quirk;
	snps,dis-u2-entry-quirk;
	status = "okay";
	wakeup-source; ///////////////////////////

	port {
		usb3_drd_sw: endpoint {
			remote-endpoint = <&typec_dr_sw>;
		};
	};
};

 

 

2. setting commands

Here the 3-1 and usbX is decided by kernel log.

 

[    5.467641] input: Dell Dell USB Keyboard as /devices/platform/soc@0/32f10100.usb/38100000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:413C:2010.0001/input/input1
echo enabled > /sys/bus/platform/devices/32f10100.usb/power/wakeup
echo enabled > /sys/bus/platform/devices/381f0040.usb-phy/power/wakeup
echo enabled > /sys/bus/platform/devices/xhci-hcd.2.auto/power/wakeup
echo enabled > /sys/bus/platform/devices/xhci-hcd.1.auto/power/wakeup
echo enabled > /sys/bus/usb/devices/3-1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup

 

3, wakeup by keyboard.

Zhiming_Liu_0-1732758982848.png

 

Best Regards

Zhiming

 

0 Kudos
Reply