Configure the power key as a wakeup source in M4 MCU

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

Configure the power key as a wakeup source in M4 MCU

761 Views
vinothkumars
Senior Contributor IV

Hi All,

I am working on imx8qm-mek board with Android 9 Automotive. I needs to configure the power key as a wake-up source in M4 MCU (SDK_MEK-MIMX8QM, 2.5.1)

in fsl-imx8qm-device.dtsi file,

        sc_pwrkey: sc-powerkey {
                compatible = "fsl,imx8-pwrkey";
                linux,keycode = <KEY_POWER>;
                wakeup-source;
        };

Is there anyway to configure power key button as a wake up source in M4 MCU ?

Thanks & Regards,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos
1 Reply

743 Views
igorpadykov
NXP Employee
NXP Employee

Hi VinothS

one can look at wake examples in M4 SDK_MEK-MIMX8QM   /power_mode_switch/../power_mode_switch.c

Welcome | MCUXpresso SDK Builder 

and try to reconfigure it in the same manner, may be useful:

https://community.nxp.com/docs/DOC-341481 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos