From: Moritz Fischer Date: Thu, 22 Feb 2018 23:17:13 +0000 (-0800) Subject: dt-bindings: power: reset: gpio-poweroff: Add 'timeout-ms' property X-Git-Tag: v4.17-rc1~155^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88f598725f42c8ad8c6c01c82bd3d667c250e1de;p=thirdparty%2Fkernel%2Flinux.git dt-bindings: power: reset: gpio-poweroff: Add 'timeout-ms' property Add 'timeout-ms' property to support boards where the 3s timeout that the current driver defaults to is too short. Signed-off-by: Moritz Fischer Reviewed-by: Rob Herring Signed-off-by: Sebastian Reichel --- diff --git a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt index e62d53d844ccc..6d8980c18c348 100644 --- a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt +++ b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt @@ -27,10 +27,13 @@ Optional properties: it to an output when the power-off handler is called. If this optional property is not specified, the GPIO is initialized as an output in its inactive state. +- timeout-ms: Time to wait before asserting a WARN_ON(1). If nothing is + specified, 3000 ms is used. Examples: gpio-poweroff { compatible = "gpio-poweroff"; gpios = <&gpio 4 0>; + timeout-ms = <3000>; };