From patchwork Thu Aug 4 23:04:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9264507 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 6F9EA60754 for ; Thu, 4 Aug 2016 23:05:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6057828406 for ; Thu, 4 Aug 2016 23:05:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 520EC28424; Thu, 4 Aug 2016 23:05:41 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF42628406 for ; Thu, 4 Aug 2016 23:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759361AbcHDXFj (ORCPT ); Thu, 4 Aug 2016 19:05:39 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36254 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759050AbcHDXFi (ORCPT ); Thu, 4 Aug 2016 19:05:38 -0400 Received: by mail-pa0-f50.google.com with SMTP id pp5so86665628pac.3 for ; Thu, 04 Aug 2016 16:05:38 -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=cUZA17bdRqH9MQ/ElDkyES3uVp1sRz60v0W5gHNC6d6Xeffiv1omMasraKOhb6oFjW GBoVGDTYsqU2kYi9Ng7zoEyuiTnG16RpNMKssznK70v8m9Pu5sJsp17fpFtHxlrMuX8M 1tIAzKJPNiyO0uPJ183c9136z0hZCQMymYFIo= 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=gOj8d05FJfhqm67I/us6c8icbaV5kjmwtzcxXnslTgI9S0qy9huGubzaEznW5YOlR1 pNIT/rZ/BRD4v6CL4tW6p6Zd7FRN3yUxmeSc3eyfYXYX87O48KwNfwON/v/bdtUGcDVn HoafvBRXQX21Ob5Zo5ECE6c/7cMnmD9sBxp87SjtX1ffwuWvTtpdTDgtW+RTQuxDXfNx KZm1TcGzQOWCJSMNH9MpLejQdHlKbdz/xLp/rI9ZKg9qEgDJtDTBurf2affXJg2ZDBnw m9o/LQkrFi20EvQUr78EBOeitvfyeUfsZMyigOIBSLAgwooDncUvexkdXWbTMK8QT+rE r0uA== X-Gm-Message-State: AEkoouuK12YRLPmFyBm7OtsMtTZ7wkvNdWMbyeI331o+WsdagPQvEsB8EUQoivjy5znNeroS X-Received: by 10.66.66.13 with SMTP id b13mr131167994pat.45.1470351937473; Thu, 04 Aug 2016 16:05:37 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x66sm22736214pfb.86.2016.08.04.16.05.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 16:05:36 -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 v3 02/15] dt/bindings: Update binding for PM domain idle states Date: Thu, 4 Aug 2016 17:04:49 -0600 Message-Id: <1470351902-43103-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470351902-43103-1-git-send-email-lina.iyer@linaro.org> References: <1470351902-43103-1-git-send-email-lina.iyer@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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] Acked-by: Rob Herring --- .../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