Skip to main content
Visitor II
February 21, 2021
Question

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

  • February 21, 2021
  • 2 replies
  • 1711 views

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.

    2 replies

    Technical Moderator
    March 1, 2021

    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.

    SMich.1Author
    Visitor II
    March 1, 2021

    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 ?

    Technical Moderator
    March 1, 2021

    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.

    SMich.1Author
    Visitor II
    March 1, 2021

    thanks