gpio key can not wake up system sometimes

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

gpio key can not wake up system sometimes

1,836 Views
echozeng
Contributor III

Hi,

      My issus is gpio key can not wake up  system sometimes !

      Linux version 3.0.35 + imx6dq + two gpio keys.

      Two gpio keys:key1,key2 with wakeup feature.

      App read key1 input pressed event  and then "stanby" system, press key2 wakeup system. but sometimes ,key2 can not wakeup system.

      As can not wake up system by press key2, I wake up system  by press key1. gpio key driver produce key1 and  key2 interrupt. and I check gpc IRQ masking regs: mask bits is right.

Thanks!

Labels (3)
0 Kudos
Reply
5 Replies

1,636 Views
igorpadykov
NXP Employee
NXP Employee

Hi echo

one can narrow down issue running test with baremetal sdk found on

https://community.nxp.com/thread/432859 

or with minimal linux image

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

0 Kudos
Reply

1,636 Views
echozeng
Contributor III

Hi igor

     Sorry for your answer, I can not understand what relation between gpio wake up interrupt and SMP enable in IMX6.

     I already checked the gpc mask bits setting is right.

     It is difficult to debug after system suspended, so can you give me some suggestions to find out why gpio can not wake up system? My meaning is I need more details.

Best regards

echo zeng

0 Kudos
Reply

1,636 Views
igorpadykov
NXP Employee
NXP Employee

Hi echo

this may be caused by many reasons, including ERR007265,ERR006223

errata, operating system delays/race conditions and probably old this 3.0.35 kernel version bugs.

You can follow either debug path to narrow down issue.

Best regards
igor

0 Kudos
Reply

1,636 Views
echozeng
Contributor III

Hi igor,

      Close SMP feature, the issue does not be reproduced. How does it impact system if disable SMP?

Best regards

echo

0 Kudos
Reply

1,636 Views
igorpadykov
NXP Employee
NXP Employee

3.0.35 kernel is very old, since then many gpu and arm errata were fixed in new

linux bsps (including SMP related). You can check improvements in Release Notes

document (sect.What's New?, New Features) included in linux documntation package given on below link

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

For example latest uboot has defines for most severe arm errara like #define CONFIG_ARM_ERRATA_743622 and so on

uboot/include/configs/mx6_common.h

mx6_common.h\configs\include - uboot-imx - i.MX U-Boot 

Best regards
igor

0 Kudos
Reply