From patchwork Fri Oct 9 04:36:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 54685 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 5A28522FF4 for ; Fri, 9 Oct 2015 04:39:30 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf21944453wic.3 for ; Thu, 08 Oct 2015 21:39:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Vc/5v0bA8ZSGxpFu3k48ofN+1hexc7JXVRO2dIrpBOQ=; b=dAyZIb/orct53PiCQMvqFQMPo5Sb1YA6m5oRGRsuyHhO42UqtZtacQiACkfdtL3ofX dNkcbNI1qHjhlTrXmI97EUIccRaTMIir3xVJ/wnXDEfx7qffxyfu22nmqrLeJcSAbONw XtwGwvk4EVTVoOLPWBhSxi9G+QPhG7alAFlOrmimiP7DBEEVrjHpVP90DuMdUHFPv+jV m0YFU7ZU1TxEDU0FpgOT7sfe3A7UIIWaGg1TDvyPpThHAy0XQ6ClB56swirJ/TwpNo9K eUepxuTo+pu+xiQG7HqtylY5QlZzGKGE0SbmmiCyf6x7htZO/J4EKQl5YYjo1PAj7kd3 xP7A== X-Gm-Message-State: ALoCoQkOrD9FB33WH5sYpixpRUVEToZdcUa3y6g+bfFza53WwuZ+UlMnyVNpZiFf8SkjoNps7D24 X-Received: by 10.112.190.65 with SMTP id go1mr2163149lbc.9.1444365569443; Thu, 08 Oct 2015 21:39:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.17.70 with SMTP id g67ls257135lfi.13.gmail; Thu, 08 Oct 2015 21:39:29 -0700 (PDT) X-Received: by 10.25.40.65 with SMTP id o62mr3581353lfo.115.1444365569269; Thu, 08 Oct 2015 21:39:29 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id l129si32401315lfe.102.2015.10.08.21.39.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 21:39:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbwt4 with SMTP id wt4so68276819lbb.1 for ; Thu, 08 Oct 2015 21:39:29 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr5580202lbb.35.1444365568833; Thu, 08 Oct 2015 21:39:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp943685lbq; Thu, 8 Oct 2015 21:39:27 -0700 (PDT) X-Received: by 10.68.200.167 with SMTP id jt7mr12590108pbc.83.1444365567762; Thu, 08 Oct 2015 21:39:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id we9si71780805pac.164.2015.10.08.21.39.22; Thu, 08 Oct 2015 21:39:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933084AbbJIEjT (ORCPT + 30 others); Fri, 9 Oct 2015 00:39:19 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:35790 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752160AbbJIEjP (ORCPT ); Fri, 9 Oct 2015 00:39:15 -0400 Received: by wicge5 with SMTP id ge5so51653813wic.0 for ; Thu, 08 Oct 2015 21:39:13 -0700 (PDT) X-Received: by 10.195.11.232 with SMTP id el8mr11722063wjd.138.1444365553619; Thu, 08 Oct 2015 21:39:13 -0700 (PDT) Received: from localhost.localdomain ([78.110.172.67]) by smtp.gmail.com with ESMTPSA id bv2sm49982225wjc.11.2015.10.08.21.39.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Oct 2015 21:39:12 -0700 (PDT) From: Leo Yan To: Catalin Marinas , Will Deacon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Bintian Wang , Leo Yan , Haojian Zhuang , Wei Xu , Yiping Xu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown , Tyler Baker Subject: [PATCH 4/4] arm64: dts: enable idle states for Hi6220 Date: Fri, 9 Oct 2015 12:36:16 +0800 Message-Id: <1444365376-10728-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444365376-10728-1-git-send-email-leo.yan@linaro.org> References: <1444365376-10728-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add cpu and cluster level's low power state for Hi6220. Signed-off-by: Leo Yan Acked-by: Sudeep Holla --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 7edbe42..e83802a 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -52,11 +52,35 @@ }; }; + idle-states { + entry-method = "arm,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 { @@ -64,6 +88,7 @@ device_type = "cpu"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu2: cpu@2 { @@ -71,6 +96,7 @@ device_type = "cpu"; reg = <0x0 0x2>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu3: cpu@3 { @@ -78,6 +104,7 @@ device_type = "cpu"; reg = <0x0 0x3>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu4: cpu@100 { @@ -85,6 +112,7 @@ device_type = "cpu"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu5: cpu@101 { @@ -92,6 +120,7 @@ device_type = "cpu"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu6: cpu@102 { @@ -99,6 +128,7 @@ device_type = "cpu"; reg = <0x0 0x102>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; cpu7: cpu@103 { @@ -106,6 +136,7 @@ device_type = "cpu"; reg = <0x0 0x103>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; };