IMX8MQ USB Wakeup

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

IMX8MQ USB Wakeup

3,597 Views
Jack19
Contributor I

Hello all,

I am attempting to use USB to wake from a low power mode on an MIMX8MQ6CVAHZAA with i.MX Linux Kernel 5.4. To test, I am using the following procedure with a USB keyboard:

# check that the keyboard device wakeup is enabled
$ cat /sys/bus/usb/devices/1-1/power/wakeup
enabled

# suspend system
$ echo deep > /sys/power/state

I expect the system to resume on a key press, but nothing happens.

I am aware of erratum e11231 from this document applicable to the processor. A related NXP community post (user @RayW8d had a very similar goal) indicates that there is a patch for e11231. However, it does not appear that this patch was made public.

Please advise on how to achieve this wakeup functionality via USB.

Thank you in advance.

0 Kudos
Reply
11 Replies

2,935 Views
ZRay
Contributor I

Hi,

Does this method also work on desktop?
I have the same need on desktop and would like some help.

Thank you.

0 Kudos
Reply

2,911 Views
Jack19
Contributor I
Hi @ZRay,
Can you clarify what you mean by "on desktop"? Is this related to an NXP product?
Thanks
0 Kudos
Reply

2,893 Views
ZRay
Contributor I

Hi @Jack19,

My customer is using i.MX8MQ with nxp-desktop (Kernel version 5.15.32)

They want to resume the system via USB, but it seems that patch is needed.

Thank you.

0 Kudos
Reply

3,557 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Dear Jack,

@Jack19 I already email the patches to you, please have a check.

Wish you have a nice day

Best Regards

Rita

0 Kudos
Reply

739 Views
huangbaokang
Contributor II

Hello, Could you please send this patches to me too?  we need this patch too.

0 Kudos
Reply

683 Views
huangbaokang
Contributor II

@Rita_Wang  have any feedback ?

0 Kudos
Reply

2,696 Views
antoluk
Contributor II
Hello, Could you please send this patches to me too?
0 Kudos
Reply

3,469 Views
Roman_Loz
Contributor I

Hi,
I tried this on imx8mp and had the same result (nothing).
Could you please help me too?

0 Kudos
Reply

3,438 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

@Roman_Loz I email to you, please have a check.

0 Kudos
Reply

3,435 Views
Roman_Loz
Contributor I

Thank you for your help.
I am trying to wakeup imx8mp (not imx8mq) and the Kernel based on tag lf-6.1.22-2.0.0.
Are there any patches for that?

0 Kudos
Reply

3,393 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @Roman_Loz ,

We do not have this patch for the i.MX8MP, but you can try to refer to the patch for the i.MX8MQ.

Wish you have a nice day

Best Regards

Rita

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1864817%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1864817%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3EI%20am%20attempting%20to%20use%20USB%20to%20wake%20from%20a%20low%20power%20mode%20on%20an%26nbsp%3B%3CSPAN%3E%3CSPAN%20class%3D%22%22%3EMIMX8MQ6CVAHZAA%3C%2FSPAN%3E%3C%2FSPAN%3E%20with%20i.MX%20Linux%20Kernel%205.4.%20To%20test%2C%20I%20am%20using%20the%20following%20procedure%20with%20a%20USB%20keyboard%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%23%20check%20that%20the%20keyboard%20device%20wakeup%20is%20enabled%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%24%20cat%20%2Fsys%2Fbus%2Fusb%2Fdevices%2F1-1%2Fpower%2Fwakeup%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eenabled%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%23%20suspend%20system%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%24%20echo%20deep%20%26gt%3B%20%2Fsys%2Fpower%2Fstate%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20expect%20the%20system%20to%20resume%20on%20a%20key%20press%2C%20but%20nothing%20happens.%3C%2FP%3E%3CP%3EI%20am%20aware%20of%20erratum%26nbsp%3Be11231%20from%20%3CA%20title%3D%22Mask%20Set%20Errata%20for%20Mask%200N14W%22%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Ferrata%2FIMX8MDQLQ_0N14W.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ethis%20document%3C%2FA%3E%26nbsp%3Bapplicable%20to%20the%20processor.%20A%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors%2FSW-workaround-for-i-MX8MQ-e11231-USB-Clock-must-remain-on-during%2Fm-p%2F1334598%22%20target%3D%22_blank%22%3Erelated%20NXP%20community%20post%3C%2FA%3E%26nbsp%3B(user%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F190775%22%20target%3D%22_blank%22%3E%40RayW8d%3C%2FA%3E%26nbsp%3Bhad%20a%20very%20similar%20goal)%20indicates%20that%20there%20is%20a%20patch%20for%20e11231.%20However%2C%20it%20does%20not%20appear%20that%20this%20patch%20was%20made%20public.%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20advise%20on%20how%20to%20achieve%20this%20wakeup%20functionality%20via%20USB.%3C%2FP%3E%3CP%3EThank%20you%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1864817%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2292869%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292869%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F57740%22%20target%3D%22_blank%22%3E%40Rita_Wang%3C%2FA%3E%26nbsp%3B%20have%20any%20feedback%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2292194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20Could%20you%20please%20send%20this%20patches%20to%20me%20too%3F%26nbsp%3B%20we%20need%20this%20patch%20too.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012816%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012816%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHello%2C%20Could%20you%20please%20send%20this%20patches%20to%20me%20too%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1974670%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1974670%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233491%22%20target%3D%22_blank%22%3E%40Jack19%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EMy%20customer%20is%20using%20i.MX8MQ%20with%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fmeta-nxp-desktop%2Ftree%2Flf-5.15.32-2.0.0-kirkstone%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Enxp-desktop%20(Kernel%20version%205.15.32)%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThey%20want%20to%20resume%20the%20system%20via%20USB%2C%20but%20it%20seems%20that%20patch%20is%20needed.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1974399%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1974399%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214745%22%20target%3D%22_blank%22%3E%40ZRay%3C%2FA%3E%2C%3CBR%20%2F%3ECan%20you%20clarify%20what%20you%20mean%20by%20%22on%20desktop%22%3F%20Is%20this%20related%20to%20an%20NXP%20product%3F%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1972843%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1972843%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EDoes%20this%20method%20also%20work%20on%20desktop%3F%3CBR%20%2F%3EI%20have%20the%20same%20need%20on%20desktop%20and%20would%20like%20some%20help.%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1893242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1893242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235111%22%20target%3D%22_blank%22%3E%40Roman_Loz%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3EWe%20do%20not%20have%20this%20patch%20for%20the%20i.MX8MP%2C%20but%20you%20can%20try%20to%20refer%20to%20the%20patch%20for%20the%20i.MX8MQ.%3C%2FP%3E%0A%3CP%3EWish%20you%20have%20a%20nice%20day%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3ERita%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1890411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1890411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20help.%3CBR%20%2F%3EI%20am%20trying%20to%20wakeup%20imx8mp%20(not%20imx8mq)%20and%20the%20Kernel%20based%20on%20tag%20lf-6.1.22-2.0.0.%3CBR%20%2F%3EAre%20there%20any%20patches%20for%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1890296%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1890296%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235111%22%20target%3D%22_blank%22%3E%40Roman_Loz%3C%2FA%3E%20I%20email%20to%20you%2C%20please%20have%20a%20check.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1888724%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1888724%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI%20tried%20this%20on%20imx8mp%20and%20had%20the%20same%20result%20(nothing).%3CBR%20%2F%3ECould%20you%20please%20help%20me%20too%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1867613%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MQ%20USB%20Wakeup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1867613%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20Jack%2C%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233491%22%20target%3D%22_blank%22%3E%40Jack19%3C%2FA%3E%20I%20already%20email%20the%20patches%20to%20you%2C%20please%20have%20a%20check.%3C%2FP%3E%0A%3CP%3EWish%20you%20have%20a%20nice%20day%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3ERita%3C%2FP%3E%3C%2FLINGO-BODY%3E