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

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

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

6,633 Views
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 Replies

5,270 Views
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,270 Views
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 Kudos
Reply

5,270 Views
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!
-----------------------------------------------------------------------------------------------------------------------