Author Topic: Clean shutdown  (Read 99 times)

jhane

  • Active Member
  • *
  • Posts: 6
Clean shutdown
« on: July 27, 2020, 09:25:49 PM »
Hello,
 We are implementing a design using the 821 SOM and trying to understand if the SOM supports a clean shutdown on power-off.  So when the power button is pressed, linux is shutdown before power is removed. 

thanks,
jeff

Oleksandr Kiyenko

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 382
Re: Clean shutdown
« Reply #1 on: July 28, 2020, 08:19:51 AM »
Hello Jeff.

You need to define something like that
https://kernel.googlesource.com/pub/scm/linux/kernel/git/kasatkin/linux-digsig/+/c284979affcc6870a9a6545fc4b1adb3816dfcbf/Documentation/devicetree/bindings/gpio/gpio-poweroff.txt
in your Linux device tree, based on your system configuration.

Best regards
Oleksandr Kiyenko

jhane

  • Active Member
  • *
  • Posts: 6
Re: Clean shutdown
« Reply #2 on: July 28, 2020, 09:06:23 AM »
Hi Oleksandr

  I have seen that; however, the ZynqMP has the PMU and it has some support for power management which talk to another driver in the kernel to do clean shutdown of linux.   The PMU provides an external processor to deal with the power management and I just wanted make sure that Trenz did not have shutdown logic in the system controller before I try to understand the PMU.

thank you,
jeff

Oleksandr Kiyenko

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 382
Re: Clean shutdown
« Reply #3 on: July 28, 2020, 10:21:53 AM »
Hi Jeff,
there is no active power control in current revision of system controller firmware.

Best regards
Oleksandr Kiyenko