From patchwork Mon Apr 27 12:43:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 6279931 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 51C5BBF4A6 for ; Mon, 27 Apr 2015 12:44:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 82DF420462 for ; Mon, 27 Apr 2015 12:44:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 766A120460 for ; Mon, 27 Apr 2015 12:44:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932901AbbD0Moq (ORCPT ); Mon, 27 Apr 2015 08:44:46 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:58184 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932807AbbD0Mnx (ORCPT ); Mon, 27 Apr 2015 08:43:53 -0400 Received: from ayla.of.borg ([84.193.93.87]) by xavier.telenet-ops.be with bizsmtp id M0jr1q00C1t5w8s010jrx6; Mon, 27 Apr 2015 14:43:51 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1YmiO7-00006m-8S; Mon, 27 Apr 2015 14:43:51 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1YmiO7-0003fA-Uh; Mon, 27 Apr 2015 14:43:51 +0200 From: Geert Uytterhoeven To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Axel Haslam Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC v6 1/7] PM / Domains: Add DT bindings for power-on/off latencies Date: Mon, 27 Apr 2015 14:43:36 +0200 Message-Id: <1430138622-14029-2-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430138622-14029-1-git-send-email-geert+renesas@glider.be> References: <1430138622-14029-1-git-send-email-geert+renesas@glider.be> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP PM domain power-on/off latencies are properties of the hardware. In legacy code, they're specified from platform code. On DT platforms, their values should come from DT. Signed-off-by: Geert Uytterhoeven Acked-by: Kevin Hilman Reviewed-by: Ulf Hansson --- v6: - Rebased on top of v4.1-rc1 for new RFC, v5: - No changes, v4: - Add Reviewed-by, - Replace single latency value by list of latencies, v3: - No changes, v2: - Add Acked-by. --- Documentation/devicetree/bindings/power/power_domain.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 025b5e7df61c630c..d659e5cb39be6057 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -28,6 +28,12 @@ Optional properties: created by the given provider should be subdomains of the domain specified by this binding. More details about power domain specifier are available in the next section. + - power-on-latency: List of power-on latencies (in ns), one for each PM + domain. If all power-on latencies are identical, the list may be shortened + to a single value. + - power-off-latency: List of power-off latencies (in ns), one for each PM + domain. If all power-off latencies are identical, the list may be shortened + to a single value. Example: @@ -35,10 +41,12 @@ Example: compatible = "foo,power-controller"; reg = <0x12340000 0x1000>; #power-domain-cells = <1>; + power-on-latency = <250000 400000 180000>; + power-off-latency = <250000 400000 300000>; }; -The node above defines a power controller that is a PM domain provider and -expects one cell as its phandle argument. +The node above defines a power controller that is a PM domain provider for +3 PM domains, and expects one cell as its phandle argument. Example 2: