From patchwork Mon Feb 19 22:59:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 875335 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zlfTF456qz9s0b for ; Tue, 20 Feb 2018 10:04:33 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932229AbeBSXEb (ORCPT ); Mon, 19 Feb 2018 18:04:31 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34827 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932190AbeBSXEa (ORCPT ); Mon, 19 Feb 2018 18:04:30 -0500 Received: by mail-pg0-f66.google.com with SMTP id l131so6423377pga.2 for ; Mon, 19 Feb 2018 15:04:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iqYUUAnmbDJv7HfF73NGM0tlwJGD7DCZbv0CAFZw2bY=; b=AGfqNP5GTHr7DmCfVF62ijMEqQBL5M241BIo/VRJNGMSicfZCLo/roRUxYzrpNc8A3 eUS1pe+8gkAPfrn4Tswi57TcJHKHf9lEFkXTxH99MRqmdRK+8wOEHR/c+K8wSN7E/Vqr SwD2haMvvftikHLLg2/Vn5pisLmR/FXwpGgUdgKpBmKQYPV8zPCcbcf/VILIMC5dq7Hh ffTpCXkYxAfg1BtOnrRaAsL72C5nhYZmX9bSw7u55cOvUksf3VxdGfauC84NlkGjeMO3 +KajWjHxL0lKCIENUHQR5KNlY+VqA0/euTEgeDMotblU7tI21AMTHr5gJU13IF4vtzv3 c+AA== X-Gm-Message-State: APf1xPAMmwgeDWJluy1DQ0+INgWWMXYEg2S57gHunjZh2qwf7f9PnIw0 5UKWbpu/L+NHHeRurtpFGJyuzw== X-Google-Smtp-Source: AH8x225SOTNQajeEOT0UH1r0cmmUNezX0Z9PHn3zUOex/SnQ89VermKXo73lQ+0Z//tjBVu7R9W8Cw== X-Received: by 10.101.66.129 with SMTP id j1mr13155094pgp.56.1519081469378; Mon, 19 Feb 2018 15:04:29 -0800 (PST) Received: from localhost (207-114-172-147.static.twtelecom.net. [207.114.172.147]) by smtp.gmail.com with ESMTPSA id l2sm33493514pgu.46.2018.02.19.15.04.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2018 15:04:28 -0800 (PST) From: Moritz Fischer To: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, sre@kernel.org, Moritz Fischer Subject: [PATCH v2 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout_ms' property Date: Mon, 19 Feb 2018 14:59:17 -0800 Message-Id: <20180219225918.2311-1-mdf@kernel.org> X-Mailer: git-send-email 2.16.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- Changes from v1: - Addressed Rob's feedback (timeout -> timeout_ms) - Added to old example rather than creating separate one --- Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt index e62d53d844cc..3f557b344dc4 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>; };