From patchwork Sat Apr 2 09:29:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 64917 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp250297lbc; Sat, 2 Apr 2016 02:30:50 -0700 (PDT) X-Received: by 10.66.63.98 with SMTP id f2mr9716583pas.123.1459589446211; Sat, 02 Apr 2016 02:30:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 77si26679584pfq.237.2016.04.02.02.30.45; Sat, 02 Apr 2016 02:30:46 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753150AbcDBJaj (ORCPT + 7 others); Sat, 2 Apr 2016 05:30:39 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35666 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751768AbcDBJai (ORCPT ); Sat, 2 Apr 2016 05:30:38 -0400 Received: by mail-pf0-f174.google.com with SMTP id n1so3529470pfn.2 for ; Sat, 02 Apr 2016 02:30:38 -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=3E+aGL4VfUDy6G/NFSfqg6bnPSm+5qNKlJhdMH8fUFE=; b=Vr8UQ+zKD0D5dYe7sWhDCLuAcOh6L4vnTMuuzH6NeCeNbLvRQoa9wrRCcX1OjV0LPD X/z3MlisfGQt245iYtOq+OSoFD3MJdhJKh9/gTq0A2LXqZO5dYG/XNcTiT3jsAR7k9rh +Jj46oVTFVyWnz0Gn2XkGJ2t0HN73Po5h79uc= 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=3E+aGL4VfUDy6G/NFSfqg6bnPSm+5qNKlJhdMH8fUFE=; b=HKDPV6PpbHamzHACld1vHRAcspfFSlniIQGbyRgQhqudHtuph/FDV8n3dsfpMm600K C6++CpI/S4wUQtm344aXP1zQhQbtpJh2+AeaOAOfqoWJmC8uQcMszc/E+wgkNGWCGk25 sKUabKkEy/7DZaQNIK0Qcb39qaiCbED7oIOIPWPrEW/epAzfmaavqlPmV7tvf2yoBHzA HoHFTaNKuJj4K64r6L+WCNkb7JrLnQTgYxYOZR6m43rw++M5UItGhmuj19VX2FuGsFR0 60X40OOkqvpLPUZDb7uNsceSuk3Uvm64Odlyt6goQBa4kDfWbGkj/PYV/Exfy3OU402T pYmQ== X-Gm-Message-State: AD7BkJK6UwxQOxTsONW8Xbf8ddTo4q57O2LO6LiKh/SvbcFkBYAZWMoyH1eGLwxiy/imqF5t X-Received: by 10.98.31.218 with SMTP id l87mr4944371pfj.101.1459589437697; Sat, 02 Apr 2016 02:30:37 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id i9sm25425804pfi.95.2016.04.02.02.30.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Apr 2016 02:30:37 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, mark.rutland@arm.com, robh@kernel.org, grant.likely@secretlab.ca, linus.walleij@linaro.org, arnd.bergmann@linaro.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kong.kongxinwei@hisilicon.com, Leo Yan Subject: [PATCH v2 03/16] arm64: dts: enable idle states for Hi6220 Date: Sat, 2 Apr 2016 17:29:30 +0800 Message-Id: <1459589383-16914-4-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459589383-16914-1-git-send-email-guodong.xu@linaro.org> References: <1459589383-16914-1-git-send-email-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Leo Yan Add cpu and cluster level's low power state for Hi6220. Acked-by: Sudeep Holla Signed-off-by: Leo Yan Signed-off-by: Wei Xu --- 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 82c4756..2585236 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>; }; };