static void gpio_poweroff_do_poweroff(void) { @@ -43,6 +44,9 @@ static void gpio_poweroff_do_poweroff(void) /* give it some time */ mdelay(timeout);if (old_power_off) old_power_off();WARN_ON(1); }@@ -83,14 +87,15 @@ static int gpio_poweroff_probe(struct platform_device...
To do this it installs a pm_power_off handler, causing the gpio-poweroff module to abort the probe function. This patch introduces a "force" DT property that overrides that behaviour, and also adds a DT overlay to enable and control it. Note that running in an active-low configuration (...
As thagrol points out above, gpio-poweroff is to signal your power supply that it is safe to cut power to the Pi. If power isn't cut within a few seconds then the Linux kernel assumes something has gone wrong and will force a kernel panic. It isn't meant to be used as status sig...
grep -n POWER_RESET_GPIO /boot/conf* I have a suspicion that the kernel is built without this gpio-poweroff module and you will see: config:3457:# CONFIG_POWER_RESET_GPIO is not setArtem Shakirov Members Author Posted April 24, 2023 On 4/22/2023 at 9:56 PM, going said: ...