]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerAndy Whitcroft <apw@canonical.com>
Thu, 13 Jul 2017 16:49:57 +0000 (17:49 +0100)
commit662659d46c60304f917fb87f9e21e5c9f1e6b8ee
treeb57cd9b5227d46d4066c00885519d4dc9cd0dc4a
parentf912ff329a24237993094bf5913135b9c2bba6ec
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