From patchwork Fri Aug 26 20:17:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9301999 X-Patchwork-Delegate: agross@codeaurora.org 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 6A9E860757 for ; Fri, 26 Aug 2016 20:19:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BB8E2963A for ; Fri, 26 Aug 2016 20:19:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5039F29651; Fri, 26 Aug 2016 20:19:09 +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 EC00B2963A for ; Fri, 26 Aug 2016 20:19:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753904AbcHZUTH (ORCPT ); Fri, 26 Aug 2016 16:19:07 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33002 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753280AbcHZUTF (ORCPT ); Fri, 26 Aug 2016 16:19:05 -0400 Received: by mail-pa0-f42.google.com with SMTP id cy9so9366684pac.0 for ; Fri, 26 Aug 2016 13:18:54 -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=K3sTs9CNjvAMQQoHcBF9G5o2J59cQa7YW0eQ5CJyolo=; b=NWv4OP6KdoxOKi7u3yuYe4dAmUi/kEkjCBFXGuX6pWp8KEDeMqIkp86mD5LWunc52Q tEBDpdBesjtVbE8pOnEitgsRXXEROnDN5iK+XmXX5vgttrWwMPFL5OjvF1nwdk8ymMal 06zhSol3DGOe6C1Xi/r3ma7rVYw8M79K0CW0A= 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=K3sTs9CNjvAMQQoHcBF9G5o2J59cQa7YW0eQ5CJyolo=; b=L65ERVpe1Dxdzc5U1p/bAeWihCCDn1CVVc10PH/DayXhmQKVjPBgk1ivmtNE4a7HyF XieDIgYkYC+Mc1aGLXcSuQn1XkkTsxdqYZ85awsiQna5Snbgxz46ZVqkeG7KLiS0UJxC G9OHsMgjwbcXLOrZwll2o6nNYGfFZ4Z5+EwLtciZd9Dv59/TtJKxWHIeBmETBprV4c4Z jmEfFUjdyvrKl6UHGC8Bgty86+5N+UbV+SizWRC2poBsGt/zx1RYDI6K6moaPw7n724b YOMEMutQbvYyZBbTMOC+RIjjDyJVjMIRZihsIfXZ8G5sU943dLWG9JILtYlYksUTNu7L beHw== X-Gm-Message-State: AE9vXwO1YJ89jJtIUcVqvin7x8uNWfaIuZfNw7sy7mTOOV6S+yQfyHg/ZorPv3cywqBH70Ny X-Received: by 10.66.233.38 with SMTP id tt6mr9083469pac.99.1472242734384; Fri, 26 Aug 2016 13:18:54 -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.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Aug 2016 13:18:53 -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, Lina Iyer , devicetree@vger.kernel.org Subject: [PATCH v5 16/16] ARM64: dts: Define CPU power domain for MSM8916 Date: Fri, 26 Aug 2016 14:17:58 -0600 Message-Id: <1472242678-33700-17-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: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define power domain and the power states for the domain as defined by the PSCI firmware. The 8916 firmware supports OS initiated method of powering off the CPU clusters. Cc: Signed-off-by: Lina Iyer --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 11bdc24..e6d8c3b 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -99,6 +99,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU1: cpu@1 { @@ -108,6 +109,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU2: cpu@2 { @@ -117,6 +119,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU3: cpu@3 { @@ -126,6 +129,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; L2_0: l2-cache { @@ -142,12 +146,33 @@ min-residency-us = <2000>; local-timer-stop; }; + + CLUSTER_RET: cluster_retention { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1000010>; + entry-latency-us = <500>; + exit-latency-us = <500>; + min-residency-us = <2000>; + }; + + CLUSTER_PWR_DWN: cluster_gdhs { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1000030>; + entry-latency-us = <2000>; + exit-latency-us = <2000>; + min-residency-us = <6000>; + }; }; }; psci { compatible = "arm,psci-1.0"; method = "smc"; + + CPU_PD: cpu-pd@0 { + #power-domain-cells = <0>; + domain-idle-states = <&CLUSTER_RET>, <&CLUSTER_PWR_DWN>; + }; }; pmu {