linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chander Kashyap <k.chander@samsung.com>
To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-samsung-soc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, daniel.lezcano@linaro.org,
	lorenzo.pieralisi@arm.com, catalin.marinas@arm.com,
	mark.rutland@arm.com, rjw@rjwysocki.net, kgene.kim@samsung.com,
	Chander Kashyap <k.chander@samsung.com>
Subject: [PATCH] arm64: dts: exynos7: add support for cpuidle core power down
Date: Wed, 15 Oct 2014 12:05:20 +0530	[thread overview]
Message-ID: <1413354920-20165-1-git-send-email-k.chander@samsung.com> (raw)

Exynos7 has core power down state where cores can be powered off independently.
This patch adds support for this state.

Signed-off-by: Chander Kashyap <k.chander@samsung.com>
---
This patch has following dependencies:
	- [PATCH v5 0/8] arch: arm64: Enable support for Samsung Exynos7 SoC
		http://www.spinics.net/lists/linux-samsung-soc/msg37047.html
	- [PATCH v9 0/8] ARM generic idle states
		http://permalink.gmane.org/gmane.linux.power-management.general/49224

 arch/arm64/boot/dts/exynos/exynos7.dtsi |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi
index ce221ac..8e0a034 100644
--- a/arch/arm64/boot/dts/exynos/exynos7.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi
@@ -36,6 +36,7 @@
 			device_type = "cpu";
 			compatible = "arm,cortex-a57", "arm,armv8";
 			enable-method = "psci";
+			cpu-idle-states = <&CPU_SLEEP>;
 			reg = <0x0>;
 		};
 
@@ -43,6 +44,7 @@
 			device_type = "cpu";
 			compatible = "arm,cortex-a57", "arm,armv8";
 			enable-method = "psci";
+			cpu-idle-states = <&CPU_SLEEP>;
 			reg = <0x1>;
 		};
 
@@ -50,6 +52,7 @@
 			device_type = "cpu";
 			compatible = "arm,cortex-a57", "arm,armv8";
 			enable-method = "psci";
+			cpu-idle-states = <&CPU_SLEEP>;
 			reg = <0x2>;
 		};
 
@@ -57,8 +60,23 @@
 			device_type = "cpu";
 			compatible = "arm,cortex-a57", "arm,armv8";
 			enable-method = "psci";
+			cpu-idle-states = <&CPU_SLEEP>;
 			reg = <0x3>;
 		};
+
+		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 = <20>;
+				exit-latency-us = <150>;
+				min-residency-us = <2100>;
+				status = "enabled";
+			};
+		};
 	};
 
 	psci {
-- 
1.7.9.5

             reply	other threads:[~2014-10-15  6:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-15  6:35 Chander Kashyap [this message]
2014-10-15  9:00 ` [PATCH] arm64: dts: exynos7: add support for cpuidle core power down Lorenzo Pieralisi
2014-10-15 13:02   ` Mark Rutland
2014-10-15 14:07     ` Lorenzo Pieralisi
2014-10-17  9:43   ` Chander Kashyap
2014-10-21 16:33     ` Lorenzo Pieralisi
2014-11-05 10:01       ` Chander Kashyap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1413354920-20165-1-git-send-email-k.chander@samsung.com \
    --to=k.chander@samsung.com \
    --cc=catalin.marinas@arm.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=kgene.kim@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=mark.rutland@arm.com \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).