From patchwork Wed Jun 22 19:36: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: 70693 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp75100qgy; Wed, 22 Jun 2016 12:38:26 -0700 (PDT) X-Received: by 10.98.34.15 with SMTP id i15mr35879360pfi.29.1466624283147; Wed, 22 Jun 2016 12:38:03 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k126si1404443pfc.180.2016.06.22.12.38.02; Wed, 22 Jun 2016 12:38:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752196AbcFVTiB (ORCPT + 8 others); Wed, 22 Jun 2016 15:38:01 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34210 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671AbcFVTiA (ORCPT ); Wed, 22 Jun 2016 15:38:00 -0400 Received: by mail-pa0-f45.google.com with SMTP id bz2so19567622pad.1 for ; Wed, 22 Jun 2016 12:37:59 -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=mqyLvyz794PpmIoaqCAHnLRBo/iWN3Bcse0DkyFO4HU=; b=kuLqOenTjYotyKe74B47zlrxtIBjO86hIozIK6cWb11BmxMluxGR5uxSDJMSwBkZcs yI2iewuCW6AKNM35eWEyU7BNyGOoapojnNFm2q76bId0eksP5t3llSOh4IrQfoAZQyXR xmsdXGu3dqUZeR0FA/7Paa4IuWYxUm9D8zC5Q= 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=mqyLvyz794PpmIoaqCAHnLRBo/iWN3Bcse0DkyFO4HU=; b=S/dQsB2a5nCg3nxgtbFXtmScp9N/jo/wm9PwlCl9VkEGvZAH1MdjTt9qZ4BcONQMa7 HkFxtr/HS3070P6HOYU8Cz1v9Zo3N7De3kuCukMj8X15eNNXXElIR8p/SLdWIncAt3sg 2RANJhTe4fek2yzPwm1x5JeJJJ+7pRE+Tr9uyYdV/E00UHUdanqs9y8EHBR+r/6qPCJU sI/iA7bPTtklNtrks7owwyJ74IU4a/LkkYKm4RCPGYHF9lBz04EhYBTzjTBNQwgXCdm1 5fHF+ZciZZtLdIkL1vj81rsZqR9ZquWTIBHxPAC+Oe8FncqyKxUP5StoxuG1j9kHwuLm dTfQ== X-Gm-Message-State: ALyK8tKs3j6CvzhnUjErM0LFy9SixQkHZcR5lT6ymJnYewf5gk9jbIwPZFhTMhhNpdAyz0RR X-Received: by 10.66.164.34 with SMTP id yn2mr34323136pab.97.1466624279318; Wed, 22 Jun 2016 12:37:59 -0700 (PDT) Received: from ubuntu.localdomain ([172.56.9.151]) by smtp.gmail.com with ESMTPSA id t4sm1563368paw.32.2016.06.22.12.37.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jun 2016 12:37:58 -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: geert@linux-m68k.org, k.kozlowski@samsung.com, andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com, Lina Iyer , devicetree@vger.kernel.org Subject: [PATCH 14/14] ARM64: dts: Define CPU power domain for MSM8916 Date: Wed, 22 Jun 2016 13:36:49 -0600 Message-Id: <1466624209-27432-15-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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 3029773..208af00 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -64,6 +64,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU1: cpu@1 { @@ -73,6 +74,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU2: cpu@2 { @@ -82,6 +84,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU3: cpu@3 { @@ -91,6 +94,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; L2_0: l2-cache { @@ -110,6 +114,27 @@ }; }; + CPU_PD: cpu-pd@0 { + #power-domain-cells = <0>; + power-states = <&CLUSTER_RET>, <&CLUSTER_PWR_DWN>; + }; + + pd-power-states { + CLUSTER_RET: power-state@1 { + state-param = <0x1000010>; + entry-latency-us = <500>; + exit-latency-us = <500>; + residency-us = <2000>; + }; + + CLUSTER_PWR_DWN: power-state@2 { + state-param = <0x1000030>; + entry-latency-us = <2000>; + exit-latency-us = <2000>; + residency-us = <6000>; + }; + }; + psci { compatible = "arm,psci-1.0"; method = "smc";