Skip to content

Commit

Permalink
overlays: Add timeout_ms parameter to gpio-poweroff
Browse files Browse the repository at this point in the history
The timeout_ms parameter specifies in milliseconds how long the kernel
waits for power-down before issuing a WARN. The default value is 3000 ms.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Mar 3, 2020
1 parent 631398d commit 669e1a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/overlays/README
Expand Up @@ -821,6 +821,8 @@ Params: gpiopin GPIO for signalling (default 26)
input Set if the gpio pin should be configured as
an input.
export Set to export the configured pin to sysfs
timeout_ms Specify (in ms) how long the kernel waits for
power-down before issuing a WARN (default 3000).


Name: gpio-shutdown
Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
Expand Up @@ -32,5 +32,6 @@
active_low = <&power_ctrl>,"gpios:8";
input = <&power_ctrl>,"input?";
export = <&power_ctrl>,"export?";
timeout_ms = <&power_ctrl>,"timeout-ms:0";
};
};

0 comments on commit 669e1a0

Please sign in to comment.