From patchwork Wed Jun 22 19:36:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9193651 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 3B19B6075A for ; Wed, 22 Jun 2016 19:39:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 273D728402 for ; Wed, 22 Jun 2016 19:39:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1980328416; Wed, 22 Jun 2016 19:39: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=-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 BC45D28402 for ; Wed, 22 Jun 2016 19:39:13 +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 1bFnyN-0001ig-8Y; Wed, 22 Jun 2016 19:38:03 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFny5-0001Yj-Ap for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2016 19:37:46 +0000 Received: by mail-pa0-x230.google.com with SMTP id bz2so19564362pad.1 for ; Wed, 22 Jun 2016 12:37:24 -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=WR78YE4jihYsBRTCNiEpV4paVq1QURlCPe2WP36CWxo=; b=I4UFG6mKa8Lvs4xq4YG+Q6ggRSj69J58UEylYTfYMjt9JmDvDPgA1/KB70nCIwGf14 1LxBN/jxyzESIZ0m4UzFx5x4u5GtYF472+/09stvJQ3ofEIArkzWP0o63NuIA0SO8Jo8 CoTictWL0nV69SP1S6HgCqu7mZuG2AdlhB2FA= 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=WR78YE4jihYsBRTCNiEpV4paVq1QURlCPe2WP36CWxo=; b=GQDctGygF8ao6h1wSepRmjhDqpkrHlsgqE9Tnx4Y+M2J7tcs6nlw2E+Z/QU5RckQJI RiBXRcx2alLfObSIKZoHhyiX1CCPEcJ9kM9WTQBJ12bAOQTP2dkLLMKzm2GhqE66+W8o bkq+oPdvy6qDlGLh1h9lLqIS+0paNvE721ICm7qK0/nwYPNBsqio98DNoytYWBwz4nVP FnOUS44tPuky9RG22ga9gxNE8J5GVqbOzh4lUQJlzS9ib4uNg6CCQ+PSgHVHg1wPEar7 lWaByiy9K95rqOYKh83CcpGcqJZW1psZ7S+GZBe3Wd1R1eyiKfP/rIs++7OTVwfLHnI1 Sg6g== X-Gm-Message-State: ALyK8tJ0lR2CuIfMzZMvxH+MUQwtmWoqXmtQhaLLotepOxsSnkjtER+2/h/wQQDjgGlsmiGY X-Received: by 10.66.194.68 with SMTP id hu4mr36571465pac.23.1466624244460; Wed, 22 Jun 2016 12:37:24 -0700 (PDT) Received: from ubuntu.localdomain ([172.56.9.151]) by smtp.gmail.com with ESMTPSA id t4sm1563368paw.32.2016.06.22.12.37.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jun 2016 12:37:23 -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 02/14] dt/bindings: update binding for PM domain idle states Date: Wed, 22 Jun 2016 13:36:37 -0600 Message-Id: <1466624209-27432-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466624209-27432-1-git-send-email-lina.iyer@linaro.org> References: <1466624209-27432-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160622_123745_534017_B99BAD0C X-CRM114-Status: GOOD ( 13.64 ) 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, k.kozlowski@samsung.com, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, Axel Haslam , Marc Titinger , geert@linux-m68k.org, Lina Iyer , andy.gross@linaro.org, mtitinger@baylibre.com 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 | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 025b5e7..41e8dda 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -29,6 +29,43 @@ Optional properties: specified by this binding. More details about power domain specifier are available in the next section. +- power-states : A phandle of an idle-state that shall be soaked into a + generic domain power state. + +==Power state== + +A PM domain power state describes an idle state of a domain and must be +have the following properties - + + - entry-latency-us + Usage: Not required if wakeup-latency-us is provided. + Value type: + Definition: u32 value representing worst case latency in + microseconds required to enter the idle state. + The exit-latency-us duration may be guaranteed + only after entry-latency-us has passed. + + - exit-latency-us + Usage: Not required if wakeup-latency-us is provided. + Value type: + Definition: u32 value representing worst case latency + in microseconds required to exit the idle state. + + - residency-us: + Usage: Optional + Value type: + Definition: A u32 value representing the time for which a + domain must be idle in the state to reap power saving benefits + of entering the state. + + - state-param: + Usage: Optional + Value type: + Definition: A u32 value as defined by the state. May be used + by the driver to hold state related u32 data. In the case of + PSCI, an extended state-id for the domain may be encoded in + this value. + Example: power: power-controller@12340000 { @@ -55,6 +92,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>; + power-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>; + power-states = <&CLUSTER_SLEEP_0>, <&CLUSTER_SLEEP_1>; + }; + + CLUSTER_SLEEP_0: power-state@0 { + entry-latency-us = <1000>; + exit-latency-us = <2000>; + residency-us = <10000>; + state-param = <0x1000010>; + }; + + CLUSTER_SLEEP_1: power-state@1 { + entry-latency-us = <5000>; + exit-latency-us = <5000>; + residency-us = <100000>; + state-param = <0x1000020>; + }; + }; + + 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.