From patchwork Thu Jan 21 10:53:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 60063 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3701570lbb; Thu, 21 Jan 2016 02:54:50 -0800 (PST) X-Received: by 10.98.8.28 with SMTP id c28mr59822834pfd.56.1453373689465; Thu, 21 Jan 2016 02:54:49 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xk9si1354002pab.38.2016.01.21.02.54.49; Thu, 21 Jan 2016 02:54:49 -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 S935313AbcAUKyk (ORCPT + 6 others); Thu, 21 Jan 2016 05:54:40 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33082 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935290AbcAUKyc (ORCPT ); Thu, 21 Jan 2016 05:54:32 -0500 Received: by mail-pa0-f44.google.com with SMTP id cy9so21556701pac.0 for ; Thu, 21 Jan 2016 02:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=CbmMsY+JX7cJzSymeppSjEVPHOAcYiOUk9nRTSLbKck=; b=MHlwND7FVCiDmyXCBOBX5PEpExX0dlBiWJtVTjswtFUVcXHKZjWRl27n9Qr7Sgtp3l MAVgY5j0XBd6DrmmuHb+GYQejmLIrGyU+k9Rk2S8uPCO9cPtoLdxcX5TpCIbByVSfnYZ GJBBIR8spTMBKvgNrRidTlyxh+E4WToY24590= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=CbmMsY+JX7cJzSymeppSjEVPHOAcYiOUk9nRTSLbKck=; b=GJpdi7k8KvPNzJeWp967S91cwH8xvIU8voJfoGOfvYVkLPBGOXV05o38EcrcNEa5M7 jQ8XHHLXB3XLV6o4S0PVglSqQdIKKjT3SC8q7LxNC9A2tldCJn/hbtlK0MELWmSEenda u7gmWkrFJ3cQF65HvugvorCz9NpvSMf+ZmIZJpOL7qjx0/0bNEOQdmyilzYxaf2ozPwQ NQA83r/3ptbb5ATqsGc9Dh4yWu45E4O1zlTHgvkRpdT3Ny0F5tn/r59gmhUFLGBJyamG I9lmFImQ1rNRKvO/4PIGyyyihelwfP5y+sRHWOjYOcxAvHTNuaxZiXkp1Eswh+6tJyxF JVGg== X-Gm-Message-State: AG10YORkTESgKaCtE4O3wDBWjTHaD6ablRX0D66jqgvbBs2kRLdSZBUrHhp5pgRh60gDQYUG X-Received: by 10.66.141.11 with SMTP id rk11mr23432103pab.156.1453373672415; Thu, 21 Jan 2016 02:54:32 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id f16sm1773544pff.18.2016.01.21.02.54.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jan 2016 02:54:31 -0800 (PST) From: Leo Yan To: Catalin Marinas , Will Deacon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Greg Kroah-Hartman , Leo Yan , Yiping Xu , Yu Dongbin , Haojian Zhuang , Chen Feng , Tyler Baker , Bintian Wang , Sudeep Holla , Wei Xu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 RESEND 4/4] arm64: dts: enable idle states for Hi6220 Date: Thu, 21 Jan 2016 18:53:50 +0800 Message-Id: <1453373630-4693-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453373630-4693-1-git-send-email-leo.yan@linaro.org> References: <1453373630-4693-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add cpu and cluster level's low power state for Hi6220. Acked-by: Sudeep Holla Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) -- 1.9.1 -- 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/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 781681a..6fb1697 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -53,11 +53,35 @@ }; }; + idle-states { + entry-method = "psci"; + + CPU_SLEEP: cpu-sleep { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <700>; + exit-latency-us = <250>; + min-residency-us = <1000>; + }; + + CLUSTER_SLEEP: cluster-sleep { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x1010000>; + entry-latency-us = <1000>; + exit-latency-us = <700>; + min-residency-us = <2700>; + wakeup-latency-us = <1500>; + }; + }; + cpu0: cpu@0 { compatible = "arm,cortex-a53", "arm,armv8"; device_type = "cpu"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu1: cpu@1 { @@ -65,6 +89,7 @@ device_type = "cpu"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu2: cpu@2 { @@ -72,6 +97,7 @@ device_type = "cpu"; reg = <0x0 0x2>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu3: cpu@3 { @@ -79,6 +105,7 @@ device_type = "cpu"; reg = <0x0 0x3>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu4: cpu@100 { @@ -86,6 +113,7 @@ device_type = "cpu"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu5: cpu@101 { @@ -93,6 +121,7 @@ device_type = "cpu"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu6: cpu@102 { @@ -100,6 +129,7 @@ device_type = "cpu"; reg = <0x0 0x102>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu7: cpu@103 { @@ -107,6 +137,7 @@ device_type = "cpu"; reg = <0x0 0x103>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; };