mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout' property
@ 2018-02-15 20:49 Moritz Fischer
  2018-02-15 20:49 ` [PATCH 2/2] power: reset: gpio-poweroff: Add support for timeout from DT Moritz Fischer
  2018-02-19 15:59 ` [PATCH 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout' property Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Moritz Fischer @ 2018-02-15 20:49 UTC (permalink / raw)
  To: linux-kernel
  Cc: devicetree, linux-pm, mark.rutland, robh+dt, sre, Moritz Fischer

From: Moritz Fischer <mdf@kernel.org>

Add 'timeout' property to support boards where the 3s timeout that the
current driver defaults to is too short.

Signed-off-by: Moritz Fischer <mdf@kernel.org>
---
 Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt
index e62d53d844cc..c2459c7d45d5 100644
--- a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt
+++ b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt
@@ -27,6 +27,8 @@ 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: Time to wait before asserting a WARN_ON(1). If nothing is
+           specified, 3000 ms is used.
 
 Examples:
 
@@ -34,3 +36,9 @@ gpio-poweroff {
 	compatible = "gpio-poweroff";
 	gpios = <&gpio 4 0>;
 };
+
+gpio-poweroff {
+	compatible = "gpio-poweroff";
+	gpios = <&gpio 4 0>;
+	timeout = <3000>;
+};
-- 
2.16.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-19 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-15 20:49 [PATCH 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout' property Moritz Fischer
2018-02-15 20:49 ` [PATCH 2/2] power: reset: gpio-poweroff: Add support for timeout from DT Moritz Fischer
2018-02-19 15:59 ` [PATCH 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout' property Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®