How to enable UART wake up from sleep mode on imx6?

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

How to enable UART wake up from sleep mode on imx6?

6,665 次查看
dongpv
Contributor III

Hello,

I am trying to enable wake up function from UART but I don't know how to do that. After put imx6 into sleep mode, it will wake up if we send data to uart pin. Do you have any suggestion in this case?

Thanks :smileyhappy:

Dong

3 回复数

5,302 次查看
fabio_estevam
NXP Employee
NXP Employee

Hi Pham,

You can do:

# echo enabled > /sys/class/tty/ttymxc0/power/wakeup
# echo mem > /sys/power/state

Then click something in console and the system will wakeup.

This examples considers that ttymxc0 is used for console. If your board uses other serial port for console, then you need to adjust it accordingly.

Regards,

Fabio Estevam

5,302 次查看
dongpv
Contributor III

Hi Fabio, igor,

Thanks so much for your information, it's very useful for me.

I tested it on my system and it can work well by your solution. But I have a more question : Do you know how to integrate it into driver source code? BTW, it will auto enabled in driver, we don't need to use command line after reboot board.

Best Regards,

Dong

0 项奖励
回复

5,302 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Dong

please refer to sect.21.1.5 Unit Test attached Linux Manual.

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