Skip to main content
SMich.1
Senior
Feb 21, 2021 16:21 UTC
Question

How attach GPIO pin to act like a PONKEY of STPMIC1 ?

Hi,

i wondering if there a way to add some GPIO pin to the DTS config so this pin will act like PONKEY of the STPMIC1 ?

actually i need to implement power off button if there a problem with linux app...

This topic has been closed for replies.

4 replies

PatrickF
ST Employee
Mar 1, 2021 12:58 UTC

Hi,

I fear I did not understand well your concern. did you have STPMIC1 in your solution ?

Without STPMIC1, the power off should be managed by your HW, and maybe a GPIO output could be used as a power off request.

Otherwise, using IWDG (watchdog) might be enough to catch application issue (there is probably some option also to have health checking done by specific secure application, e.g. in op-TEE, protected by IWDG).

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
SMich.1
SMich.1Author
Senior
Mar 1, 2021 13:02 UTC

hi,

I have STPIMIC1 in my system and i made PONKEY as toothpick button. But now the costumer wants me to make the main power button as PONKEY so if there an issue with the OS he could power off the board. i will made some changes in HW in next revision but i wondering if there is a ay to logically connect gpio pin to PONKEY interrupt ?

PatrickF
ST Employee
Mar 1, 2021 14:38 UTC

There is no way to do that. As you mention, only HW change is possible.

STPMIC1 PONKEYn is handled inside the PMIC to power ON or OFF (e.g. long press) the platform, this cannot be done using a STM32MP15 GPIO input.

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
SMich.1
SMich.1Author
Senior
Mar 1, 2021 14:39 UTC

thanks