1 From 4c4cc35a921e7706b696c25ce432b23ad32cd6e5 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 7 Feb 2020 09:51:31 +0000
4 Subject: [PATCH] overlays: Add timeout_ms parameter to gpio-poweroff
6 The timeout_ms parameter specifies in milliseconds how long the kernel
7 waits for power-down before issuing a WARN. The default value is 3000 ms.
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 arch/arm/boot/dts/overlays/README | 2 ++
12 arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts | 1 +
13 2 files changed, 3 insertions(+)
15 --- a/arch/arm/boot/dts/overlays/README
16 +++ b/arch/arm/boot/dts/overlays/README
17 @@ -821,6 +821,8 @@ Params: gpiopin GPIO for
18 input Set if the gpio pin should be configured as
20 export Set to export the configured pin to sysfs
21 + timeout_ms Specify (in ms) how long the kernel waits for
22 + power-down before issuing a WARN (default 3000).
26 --- a/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
27 +++ b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
29 active_low = <&power_ctrl>,"gpios:8";
30 input = <&power_ctrl>,"input?";
31 export = <&power_ctrl>,"export?";
32 + timeout_ms = <&power_ctrl>,"timeout-ms:0";