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: 10236581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AEB00602DC for ; Thu, 22 Feb 2018 23:22:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E7D428C0B for ; Thu, 22 Feb 2018 23:22:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FA232906A; Thu, 22 Feb 2018 23:22:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BDF528C0B for ; Thu, 22 Feb 2018 23:22:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751524AbeBVXWM (ORCPT ); Thu, 22 Feb 2018 18:22:12 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:45739 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbeBVXWL (ORCPT ); Thu, 22 Feb 2018 18:22:11 -0500 Received: by mail-pg0-f67.google.com with SMTP id e11so2613479pgq.12 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=g2HsbtCupWLUPGjs1d0NDjTSzptsJQ48/laf9TsT2dGjh6HoMMiJnG1Q6oWyC1LS/I Pq9OgY0YqhcaCampA5X5NV1A2rtAC+v5SBzRoxAfueDhWsUt3Jl0HUHEDSpVLvJAQg1+ +exlvCNd8oVC3E0PSIsXL0grhh/FUdzsRTyB9qU6NVukVaoY5adjRqpxbUlO7hYP8Uv/ qCOpx3CGh3bQq1nxYO92d7m482exjTixXH70btUFbGgTDMAXRm9i05U9Ydy5ouQ/8wYq M63FKksm9b/6dZbqtqV7Lj4DpSLCVidErgaMsgj2Nx0WPsmxUV6j6NmOCczCpydnILZg grlA== X-Gm-Message-State: APf1xPDCykDHcr3FpXe5hdaYd1ZMh77UwuoBGPnJzFPvX1/dxIqP9tfu 6Mg+v7oqb21mIh2ZmY6+FtBHEQ== 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: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; };