From patchwork Tue Oct 13 00:58: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: 54821 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id 5A32A23001 for ; Tue, 13 Oct 2015 00:59:39 +0000 (UTC) Received: by wibzt1 with SMTP id zt1sf2135931wib.0 for ; Mon, 12 Oct 2015 17:59:38 -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=wlE68pGqkvUPmh9TdFgkgSsYPbAruS9XXqjqCUWll3c=; b=LxUIC0/ryaQiCNbiAxWbWW2j3dl0lv7cnjX/66Bs9QMq9Hw/i9buNTMrm1XI2mWo49 9dfxB08VdDjiLZX4sCALpnpvl2MEjYDrzERPlPwZBXXhciNYCP9iPfTO3FoumYDnDB51 wFwEmvgpU0gnLImGNcYGJub5JskhcWEDakJc7cgjdJfCuLHD19axG8NiX17vZCa2LGM0 /0oeU9S+IzMJHyNaMGo9Q7hKd+MBhBFfDVi4uWXAVXIzNwqYmtJeZRlQ+fDmCCO1BPkt tKCZsDiuNPHtWahhoYIFDZLQEsKECOxtNqXtzAtYectN3tCeH07Lu8ZUKug/KNO3Kizl ajtQ== X-Gm-Message-State: ALoCoQkapY/OX8KmFrMQLqbZeSdvPgj7G6jo8lP7vp/g+PdXALovGp6NIWHDyh25pZUx45BYwovM X-Received: by 10.112.136.99 with SMTP id pz3mr6311755lbb.11.1444697978302; Mon, 12 Oct 2015 17:59:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.144.6 with SMTP id s6ls599360lfd.91.gmail; Mon, 12 Oct 2015 17:59:38 -0700 (PDT) X-Received: by 10.25.141.198 with SMTP id p189mr9121225lfd.9.1444697978133; Mon, 12 Oct 2015 17:59:38 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id c20si317215lfb.26.2015.10.12.17.59.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 17:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbwr8 with SMTP id r8so2411735lbw.2 for ; Mon, 12 Oct 2015 17:59:38 -0700 (PDT) X-Received: by 10.25.205.198 with SMTP id d189mr9021097lfg.72.1444697977999; Mon, 12 Oct 2015 17:59:37 -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 w3csp1828693lbq; Mon, 12 Oct 2015 17:59:36 -0700 (PDT) X-Received: by 10.50.73.71 with SMTP id j7mr15583243igv.28.1444697974091; Mon, 12 Oct 2015 17:59:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si707179ioe.165.2015.10.12.17.59.33; Mon, 12 Oct 2015 17:59:34 -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 S932217AbbJMA73 (ORCPT + 30 others); Mon, 12 Oct 2015 20:59:29 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37582 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932167AbbJMA7Z (ORCPT ); Mon, 12 Oct 2015 20:59:25 -0400 Received: by wijq8 with SMTP id q8so7437686wij.0 for ; Mon, 12 Oct 2015 17:59:24 -0700 (PDT) X-Received: by 10.194.175.232 with SMTP id cd8mr36264475wjc.45.1444697964197; Mon, 12 Oct 2015 17:59:24 -0700 (PDT) Received: from localhost.localdomain ([78.110.169.123]) by smtp.gmail.com with ESMTPSA id bv2sm364608wjc.11.2015.10.12.17.59.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 17:59:23 -0700 (PDT) From: Leo Yan To: Catalin Marinas , Will Deacon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Leo Yan , Haojian Zhuang , Wei Xu , Bintian Wang , Yiping Xu , Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 4/4] arm64: dts: enable idle states for Hi6220 Date: Tue, 13 Oct 2015 08:58:16 +0800 Message-Id: <1444697896-4323-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444697896-4323-1-git-send-email-leo.yan@linaro.org> References: <1444697896-4323-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.174 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. Acked-by: Sudeep Holla Signed-off-by: Leo Yan --- 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 cdd4125..2830571 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 = "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>; }; };