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: 9252895 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 F098060869 for ; Fri, 29 Jul 2016 21:58:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1DDE2833B for ; Fri, 29 Jul 2016 21:58:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D66B028423; Fri, 29 Jul 2016 21:58:50 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 910812836F for ; Fri, 29 Jul 2016 21:58:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bTFmV-0001SZ-E4; Fri, 29 Jul 2016 21:57:23 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bTFm5-0001J2-HJ for linux-arm-kernel@lists.infradead.org; Fri, 29 Jul 2016 21:56:59 +0000 Received: by mail-pa0-x235.google.com with SMTP id ks6so34622428pab.0 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=YKQm3HFduykMPNYWPgXrZbUF69Tsk/0RbybhbFDp2g+jeFhsRGXyswp/wuZp7LaZrL WXF0V+0uPfYiFjKpM6gXyQgD+AvVkbozsSAJpr0WMgSxp1ivrCNPwNDQxGLK9YbLjFIV Na4Zfwk9xU1QystL9SSoiOhLiqKSk+Sh9Wdv4x4goi1cOfIATQkp58+wYn1Dpdm/QWgP J4ILefTwFOsf7ino4Ny8eLwJE89S4lDrwkvmcGkwllCAXgOsEqSSsuEQHfsbiTL6V+Kn ALRTin0gi+816Bd2dq2K47FlHHuPQhCM+Y+lUhGipRFddHguwCN/r99FnTTrM5zqRxC+ EVjQ== X-Gm-Message-State: AEkooutFI2XMMWBCcaGkp/JzY8bfHE5+quc1esEzdfXqsh9VbFItX4cQvd15sVWL4Rm78yIH 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160729_145657_805933_12E0D8FB X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, Axel Haslam , Marc Titinger , andy.gross@linaro.org, Lina Iyer MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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