[i.MX8M Plus] GPIO Output state in Sleep mode

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

[i.MX8M Plus] GPIO Output state in Sleep mode

1,109 次查看
mobrembski
Contributor II

Hi All!

I'd like to ask question about GPIO State in linux sleep mode. I'm using i.MX8M Plus Processor. I couldn't find answer in reference manual

If device goes to sleep (Standby to RAM with M7 core powered on) from linux, what's the status of configured in DT GPIO Output pins assigned to A core?
Do they automatically power off or retain Hi/Lo state set before going to sleep? Or it is configurable?
Does the pull-ups configuration stays same?
Where i could find info about configuration for GPIO in sleep mode?

0 项奖励
回复
2 回复数

1,077 次查看
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @mobrembski ,

 

When the processor enter to sleep mode, the GPIOs will retain the last value and configurations.

 

Best regards!

0 项奖励
回复

854 次查看
mobrembski
Contributor II

Ok, that's normal.

But the question is does linux reconfigures GPIO before going to sleep?

Because if no, then it should be possible to attach interrupt from GPIO to M4 core and release it when A-core wakes up, so linux could use its own GPIO interrupt handler on that line.

 

But what i'm seeing right now is that M4 is running, but interrupts are fired only in a time between i've ordered linux to go to sleep, and when it surely sleeps. I configure GPIO interrups in M4 just after i get messages about sleeping A core via rpmsg and i get a few interrupts, and when A core finally finishes sleep preparation and sleeps, i have no more interrupts on M4.

So that's why i'm thinking someting in Linux is reconfiguring GPIO before it sleeps.

0 项奖励
回复