From patchwork Fri Jul 29 21:56:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 654208 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3s1My02H9fz9t0p for ; Sat, 30 Jul 2016 07:56:40 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=XErR2d2o; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753863AbcG2V4i (ORCPT ); Fri, 29 Jul 2016 17:56:38 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36447 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754058AbcG2V4h (ORCPT ); Fri, 29 Jul 2016 17:56:37 -0400 Received: by mail-pa0-f42.google.com with SMTP id pp5so34536692pac.3 for ; Fri, 29 Jul 2016 14:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z55Xg6mdzmFdUiv48yMHfbhXke7NiKKDtLfMi3+LgdY=; b=XErR2d2oK0Q+tsIMipOTt+5M1Bawxf/ptPfRzoCTOMDCJbSon1rtwrSQZXyRs64/dr w3Ip9sroor4618SbJKdKd/uIUu90Q3bFs11xUYA9oLeXFKCktidnRc3ZvVW+dfjp8sRL 3Ib0/oEoOp04VZUk/LFaVJrbGGvFdmHF7Vp2s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Z55Xg6mdzmFdUiv48yMHfbhXke7NiKKDtLfMi3+LgdY=; b=SJvX9IDCSSvehgzbk+AZCk/c8NME4xulBQxD9YdJ+GASPXt3N1McJONWm4Phwz71ZY MuAQuMArqqS/2u7n6JpAgj64ACpzn3qQJ3le4UL2KXU7V1risnzULcCFY4sz2q+7DyvD LrHsfgn/3qgA36KzAQmYAqwMzDuIdyB20YQRUHuu010bGObJZGg7+gV+L0vQ7XncXtFA /Y3h+SMBQCyRs1/c4CiYqQMUaLayx+WpbxtqbE7YXNsYtewkfqDgbhj75PILoskmdVF4 KvrmR2AaG9ArCnFS/99yhcLBKInx9Kr1SB38NDD06GU6FiR3nci8jTNV6zT50IuMi146 +ADw== X-Gm-Message-State: AEkoousGne0xNZSFWtW7vsa0Jzqsds1uvu0kmMrZVNb5PWWNeC7eq7Xfz2WEF4uDOfdQCu4P X-Received: by 10.66.80.136 with SMTP id r8mr73773229pax.72.1469829396731; Fri, 29 Jul 2016 14:56:36 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 81sm27196601pfm.90.2016.07.29.14.56.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jul 2016 14:56:35 -0700 (PDT) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, Axel Haslam , devicetree@vger.kernel.org, Marc Titinger , Lina Iyer Subject: [PATCH v2 02/14] dt/bindings: update binding for PM domain idle states Date: Fri, 29 Jul 2016 15:56:13 -0600 Message-Id: <1469829385-11511-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469829385-11511-1-git-send-email-lina.iyer@linaro.org> References: <1469829385-11511-1-git-send-email-lina.iyer@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Axel Haslam Update DT bindings to describe idle states of PM domains. Cc: Signed-off-by: Marc Titinger Signed-off-by: Lina Iyer [Lina: Added state properties, removed state names, wakeup-latency, added of_pm_genpd_init() API, pruned commit text] Signed-off-by: Ulf Hansson [Ulf: Moved around code to make it compile properly, rebased on top of multiple state support] --- .../devicetree/bindings/power/power_domain.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 025b5e7..69aa4e2 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -29,6 +29,10 @@ Optional properties: specified by this binding. More details about power domain specifier are available in the next section. +- domain-idle-states : A phandle of an idle-state that shall be soaked into a + generic domain power state. The idle state definitions are + compatible with arm,idle-state specified in [1]. + Example: power: power-controller@12340000 { @@ -55,6 +59,39 @@ Example 2: #power-domain-cells = <1>; }; +Example 3: + + pm-domains { + a57_pd: a57_pd@ { + /* will have a57 platform ARM_PD_METHOD_OF_DECLARE*/ + compatible = "arm,pd","arm,cortex-a57"; + #power-domain-cells = <0>; + idle-states = <&CLUSTER_SLEEP_0>; + }; + + a53_pd: a53_pd@ { + /* will have a a53 platform ARM_PD_METHOD_OF_DECLARE*/ + compatible = "arm,pd","arm,cortex-a53"; + #power-domain-cells = <0>; + idle-states = <&CLUSTER_SLEEP_0>, <&CLUSTER_SLEEP_1>; + }; + + CLUSTER_SLEEP_0: idle-state@0 { + compatible = "arm,idle-state"; + entry-latency-us = <1000>; + exit-latency-us = <2000>; + residency-us = <10000>; + }; + + CLUSTER_SLEEP_1: idle-state@1 { + compatible = "arm,idle-state"; + entry-latency-us = <5000>; + exit-latency-us = <5000>; + residency-us = <100000>; + }; + }; + + The nodes above define two power controllers: 'parent' and 'child'. Domains created by the 'child' power controller are subdomains of '0' power domain provided by the 'parent' power controller. @@ -76,3 +113,5 @@ Example: The node above defines a typical PM domain consumer device, which is located inside a PM domain with index 0 of a power controller represented by a node with the label "power". + +[1]. Documentation/devicetree/bindings/arm/idle-states.txt