]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
gpio-poweroff: Allow it to work on Raspberry Pi
authorPhil Elwell <phil@raspberrypi.org>
Thu, 25 Jun 2015 11:16:11 +0000 (12:16 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 11 Aug 2017 10:57:52 +0000 (12:57 +0200)
commit2e8cc56be7bb49450f1ab7bb0e2763460179d297
treea72a1760dd343925f9c0d7c3a4e30dc14777c0f3
parentd6234c8496b2ec87f26f0d5f00ed2aa50c4a12b3
gpio-poweroff: Allow it to work on Raspberry Pi

The Raspberry Pi firmware manages the power-down and reboot
process. 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 (DT parameter
"active_low") requires a custom dt-blob.bin and probably won't
allow a reboot without switching off, so an external inversion
of the trigger signal may be preferable.
drivers/power/reset/gpio-poweroff.c