Configure the power key as a wakeup source in M4 MCU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Configure the power key as a wakeup source in M4 MCU

1,390 次查看
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 项奖励
回复
1 回复

1,372 次查看
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 项奖励
回复