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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,213件の閲覧回数
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?

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,181件の閲覧回数
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 件の賞賛
返信

958件の閲覧回数
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 件の賞賛
返信