From patchwork Fri Aug 26 20:17:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 663236 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 3sLXRq6HH0z9sRB for ; Sat, 27 Aug 2016 06:18:31 +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=fLPYwBYU; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754106AbcHZUS2 (ORCPT ); Fri, 26 Aug 2016 16:18:28 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:36756 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753387AbcHZUSZ (ORCPT ); Fri, 26 Aug 2016 16:18:25 -0400 Received: by mail-pa0-f53.google.com with SMTP id di2so30182751pad.3 for ; Fri, 26 Aug 2016 13:18:19 -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=1F7JXmxltP6GPYVK4WSUjfvFjNqNljsZURuXdaj9LD8=; b=fLPYwBYUtfuOj14bdhzy4BaeR7E78kyz3pDWsKEIejFmD0BpKjfyDvyjr5vBClJR7f m2LpPBVDn0XwiGhFZ/+HSTHTzyF1uFGcac6bBvnYo+685d7hfHKc5xFSK40fupfpOBtR XS/aS1dRquHqcM2f6MkFbxdeLNf4oUL5EH62E= 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=1F7JXmxltP6GPYVK4WSUjfvFjNqNljsZURuXdaj9LD8=; b=JFcAgv0/Vyvsd9ebgdWQqdVGsUy1Q2mWGvrKCRwjYytskrW7vKoyx4Tg7hr1KDy0d+ yRIVTbhhRwg2ogpfvgWrJwc7RY4D4LrMkJz81NrlknkYm3v6fhfqiRyuJhvZNzaXqSzL F/RpAvCnezBOlrObJbv5sosx+82OFWPWC1jm+ArsEltK7IBvg7rcVeSZtn5iUm3riqB5 LOfZPx2XIxKfsIDAGgYagyI2/Wrcb/LDJqzPb5u9vhABFdMKgS8zMKmJFmM6JN6oJAsF /7TlceYkeh709Tjvw4ciJX5C+3KTv2JSqODClsLwKqEKPg5iEVDibIoqV4Qp3CG5Gbpi BdBg== X-Gm-Message-State: AE9vXwNi8rQqaqoKBdN50z3EIAfDozJ5adnRihlRugAI9AYJMbNYe54yJxMMU3DfM5BkxLtF X-Received: by 10.66.189.199 with SMTP id gk7mr9370380pac.158.1472242699204; Fri, 26 Aug 2016 13:18:19 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id m128sm30761463pfm.42.2016.08.26.13.18.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Aug 2016 13:18:18 -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, brendan.jackman@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Juri.Lelli@arm.com, Axel Haslam , devicetree@vger.kernel.org, Marc Titinger , Lina Iyer Subject: [PATCH v5 02/16] dt/bindings: Update binding for PM domain idle states Date: Fri, 26 Aug 2016 14:17:44 -0600 Message-Id: <1472242678-33700-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472242678-33700-1-git-send-email-lina.iyer@linaro.org> References: <1472242678-33700-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 | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 025b5e7..4960486 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 { @@ -59,6 +63,57 @@ 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. +Example 3: ARM v7 style CPU PM domains (Linux domain controller) + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + CPU0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a7", "arm,armv7"; + reg = <0x0>; + power-domains = <&a7_pd>; + }; + + CPU1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a15", "arm,armv7"; + reg = <0x0>; + power-domains = <&a15_pd>; + }; + }; + + pm-domains { + a15_pd: a15_pd { + /* will have A15 platform ARM_PD_METHOD_OF_DECLARE*/ + compatible = "arm,cortex-a15"; + #power-domain-cells = <0>; + domain-idle-states = <&CLUSTER_SLEEP_0>; + }; + + a7_pd: a7_pd { + /* will have a A7 platform ARM_PD_METHOD_OF_DECLARE*/ + compatible = "arm,cortex-a7"; + #power-domain-cells = <0>; + domain-idle-states = <&CLUSTER_SLEEP_0>, <&CLUSTER_SLEEP_1>; + }; + + CLUSTER_SLEEP_0: state0 { + compatible = "arm,idle-state"; + entry-latency-us = <1000>; + exit-latency-us = <2000>; + min-residency-us = <10000>; + }; + + CLUSTER_SLEEP_1: state1 { + compatible = "arm,idle-state"; + entry-latency-us = <5000>; + exit-latency-us = <5000>; + min-residency-us = <100000>; + }; + }; + ==PM domain consumers== Required properties: @@ -76,3 +131,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