From patchwork Fri Feb 12 20:50:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 61896 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1056362lbl; Fri, 12 Feb 2016 12:52:17 -0800 (PST) X-Received: by 10.98.89.4 with SMTP id n4mr4985817pfb.81.1455310311533; Fri, 12 Feb 2016 12:51:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tc5si22070214pab.176.2016.02.12.12.51.51; Fri, 12 Feb 2016 12:51:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751193AbcBLUvu (ORCPT + 6 others); Fri, 12 Feb 2016 15:51:50 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:33087 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904AbcBLUvt (ORCPT ); Fri, 12 Feb 2016 15:51:49 -0500 Received: by mail-pf0-f179.google.com with SMTP id q63so52952609pfb.0 for ; Fri, 12 Feb 2016 12:51:49 -0800 (PST) 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=KmgNWWGecQJTt9CN3qZbL9WS4kKV7egtWSWiVd+x1m8=; b=eOAnlyQYVlPCT7aUVjVfPWaDmm8xk6LNDJl0lYW2j4JeGWE0uYBF8Y93N+vIYZ6XEA x09EVTTPfYYPo4j95MjB/6OQdbT9nT8BsK7radaEFZhWkctgv2DDiCcwCK5wQHBWteLr X9C14VSjQBiMr3z7VPIdqKIRM7ULshzH6DMBE= 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=KmgNWWGecQJTt9CN3qZbL9WS4kKV7egtWSWiVd+x1m8=; b=RwPznh1abZkwg8kLIEtV9gHqG75fszKIBTJbPt/BPzm17DFW5KVn7gLZbU47ePi153 TPCcLlWazdftbBAzNuk8AiPuf/ogVbdcH1csk5v96eAkdN61gzkM35RZQfwdpuMWZCbJ CWTum70efQqAZ+7H1Jj+UWIslWwczGJz8cZBcSnIQymZ9m7Bc9CjSfsBui0q/d9IoR0m aWc26SZNpATbbRzovD+OJnytrydoe8M36Clh6tSj/6saA/tJQCbRQJmruGMtR0r5mENP x8/ItQ2VTbfxmSBAWD+Ayb8VTOPaLw1SjZy+7/ZzQsNG2iW+siGXJrRTABLzPwSj1PL4 EmiA== X-Gm-Message-State: AG10YOTrMwurzzyGjjeufio/VEwQR1zTLzsh84qUgwz6wRy2LocaPmUhxv7g/MIKjzlM0Ccs X-Received: by 10.98.69.78 with SMTP id s75mr5161873pfa.102.1455310309052; Fri, 12 Feb 2016 12:51:49 -0800 (PST) Received: from ubuntu.localdomain ([172.56.8.98]) by smtp.gmail.com with ESMTPSA id x12sm21401070pfi.88.2016.02.12.12.51.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 12:51:47 -0800 (PST) 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, msivasub@codeaurora.org, agross@codeaurora.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com, Lina Iyer , Subject: [RFC v2 12/12] ARM64: dts: Define CPU power domain for MSM8916 Date: Fri, 12 Feb 2016 13:50:38 -0700 Message-Id: <1455310238-8963-13-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455310238-8963-1-git-send-email-lina.iyer@linaro.org> References: <1455310238-8963-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 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 --- Changes since RFC v1 - - no cpu-map topology node arch/arm64/boot/dts/qcom/msm8916.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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 b7839a8..62dade8 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -63,6 +63,7 @@ reg = <0x0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU1: cpu@1 { @@ -71,6 +72,7 @@ reg = <0x1>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU2: cpu@2 { @@ -79,6 +81,7 @@ reg = <0x2>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU3: cpu@3 { @@ -87,6 +90,7 @@ reg = <0x3>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; idle-states { @@ -101,6 +105,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";