Wake Up A9 core from the Sleep in imx6sx

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

Wake Up A9 core from the Sleep in imx6sx

743 Views
nilesh_patel
Contributor II

Hi,

We are using imx6sx custom board and we need sleep and wakeup functionality based on  GPIO interrupt.

Our requirement:

1) put linux into sleep mode using echo mem > /sys/power/state command,

2) Wakeup A9 core linux when GPIO interrupt occurs.

we have use GPIO7_IO8.

for that I have created node in imx6sx-sdb.dtsi file as below:

gpio-keys {
    compatible = "gpio-keys";
     power {
             label = "wake-up";
             gpios = <&gpio7 8 1>;
             linux,code = <116>;
             gpio-key,wakeup;
     };
};

using above changes in .dtsi file i get below node:

/sys/devices/soc0/gpio-keys/power/wakeup

then, I use below command to enable it

echo enabled > /sys/devices/soc0/gpio-keys/power/wakeup

using below command I put linux into sleep mode

echo mem > /sys/power/state

then, we give interrupt on GPIO7_IO8, using button switch but I am not able wake-up linux.

So, Please provide your expert advice to fix this issue.

Thanks,

Nilesh Patel

 

Labels (3)
0 Kudos
2 Replies

661 Views
vinothkumars
Senior Contributor IV

Hi Nilesh Patel,

Will you please give your configuration. I am also struggling in wake up.

Thanks & Regards,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos

661 Views
igorpadykov
NXP Employee
NXP Employee

Hi Nilesh

for configuring gpio interrupt one can look at

Configure GPIO as interrupt source 

How to enable GPIO1 on X27 to act as an interrupt handler for max14830? - Toradex Community 

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

0 Kudos