From patchwork Thu Feb 22 23:17:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 876901 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 3znVkG65Fsz9sWf for ; Fri, 23 Feb 2018 10:22:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbeBVXWM (ORCPT ); Thu, 22 Feb 2018 18:22:12 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:43708 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460AbeBVXWM (ORCPT ); Thu, 22 Feb 2018 18:22:12 -0500 Received: by mail-pg0-f68.google.com with SMTP id f6so2614392pgs.10 for ; Thu, 22 Feb 2018 15:22:11 -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=GBVpzCDSUbZRvGb8gFcJefeWf4qvL2I2/QBP+wIwIcQ=; b=VNwVxTePQsp7SHcTwSGRA0vaQAHngi66P+MpainRibT+LaXQBrxBkDnPm15M+iRNNv glI0ehK2VPmuqdT2cbRe7wFJd9NUivSMwl3CW8P6+gh6GE1iqNNemGgQwpFVUA2bK8Ny f99uVfT6Ju8la212vnw/Tzxy0mL4X1PWjKU93vzAKhMCRkHa4Ile3+q3NH97qz1N6/n1 xdsWU/ZY3eamGi63UWwTC2vhuM/oLe4HsYag9ccvi6MGhMwaNRUQvsao4NUpRjrvVi+n KMaMSuuuiVI6wh0Qmep9bTtYOxROo2vakT3RpyWDzc1UyFeUltujuC1g1yz9ZTpZgWV5 xvKw== X-Gm-Message-State: APf1xPDirT+1vlINC8Y05e1W57l9h1qVVQVjh7aXJPtxDIj84tGz6yV2 j9k97dtJK5I1Mu8iUCMsE2jF6g== X-Google-Smtp-Source: AH8x2240LVzyLuBkBg/MRNmBhM9m5iH/aWtJg20UuFKu1yWz9Q98olhlQhM5ZIK+5G2j26wVudOW3Q== X-Received: by 10.99.95.81 with SMTP id t78mr6958514pgb.380.1519341731238; Thu, 22 Feb 2018 15:22:11 -0800 (PST) Received: from localhost (207-114-172-147.static.twtelecom.net. [207.114.172.147]) by smtp.gmail.com with ESMTPSA id p1sm1729264pgr.44.2018.02.22.15.22.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 15:22:10 -0800 (PST) From: Moritz Fischer To: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, sre@kernel.org, robh+dt@kernel.org, andy.shevchenko@gmail.com, Moritz Fischer Subject: [PATCH v3 1/2] dt-bindings: power: reset: gpio-poweroff: Add 'timeout-ms' property Date: Thu, 22 Feb 2018 15:17:13 -0800 Message-Id: <20180222231714.11843-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 Reviewed-by: Rob Herring --- Changes from v2: - Addressed Rob's feedback (timeout_ms -> timeout-ms) 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..6d8980c18c34 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>; };