public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Anson Huang <Anson.Huang@nxp•com>
To: robh+dt@kernel•org, mark.rutland@arm•com, shawnguo@kernel•org,
	s.hauer@pengutronix•de, kernel@pengutronix•de,
	festevam@gmail•com, daniel.lezcano@linaro•org,
	tglx@linutronix•de, leonard.crestez@nxp•com,
	daniel.baluta@nxp•com, ping.bai@nxp•com, jun.li@nxp•com,
	l.stach@pengutronix•de, abel.vesa@nxp•com, ccaione@baylibre•com,
	andrew.smirnov@gmail•com, angus@akkea•ca, agx@sigxcpu•org,
	devicetree@vger•kernel.org, linux-arm-kernel@lists•infradead.org,
	linux-kernel@vger•kernel.org
Cc: Linux-imx@nxp•com
Subject: [PATCH V6 4/4] arm64: dts: imx8mm: Enable cpu-idle driver
Date: Thu, 15 Aug 2019 20:38:45 -0400	[thread overview]
Message-ID: <1565915925-21009-4-git-send-email-Anson.Huang@nxp.com> (raw)
In-Reply-To: <1565915925-21009-1-git-send-email-Anson.Huang@nxp.com>

Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states
are supported, details as below:

root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/name
WFI
root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/usage
3973
root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state1/name
cpu-pd-wait
root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state1/usage
6647

Signed-off-by: Anson Huang <Anson.Huang@nxp•com>
---
Changes since V5:
	- improve state1 idle name to better match PSCI doc;
	- remove wakeup-latency-us property as it is NOT necessary when entry-latency-us/exit-latency-us
	  exist.
---
 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index 94433c53..9b2dc12 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -44,6 +44,19 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		idle-states {
+			entry-method = "psci";
+
+			cpu_pd_wait: cpu-pd-wait {
+				compatible = "arm,idle-state";
+				arm,psci-suspend-param = <0x0010033>;
+				local-timer-stop;
+				entry-latency-us = <1000>;
+				exit-latency-us = <700>;
+				min-residency-us = <2700>;
+			};
+		};
+
 		A53_0: cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a53";
@@ -56,6 +69,7 @@
 			nvmem-cells = <&cpu_speed_grade>;
 			nvmem-cell-names = "speed_grade";
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 		};
 
 		A53_1: cpu@1 {
@@ -68,6 +82,7 @@
 			next-level-cache = <&A53_L2>;
 			operating-points-v2 = <&a53_opp_table>;
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 		};
 
 		A53_2: cpu@2 {
@@ -80,6 +95,7 @@
 			next-level-cache = <&A53_L2>;
 			operating-points-v2 = <&a53_opp_table>;
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 		};
 
 		A53_3: cpu@3 {
@@ -92,6 +108,7 @@
 			next-level-cache = <&A53_L2>;
 			operating-points-v2 = <&a53_opp_table>;
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 		};
 
 		A53_L2: l2-cache0 {
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-08-16  0:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-16  0:38 [PATCH V6 1/4] clocksource: imx-sysctr: Add internal clock divider handle Anson Huang
2019-08-16  0:38 ` [PATCH V6 2/4] arm64: dts: imx8mm: Add system counter node Anson Huang
2019-08-16  0:38 ` [PATCH V6 3/4] arm64: dts: imx8mq: " Anson Huang
2019-08-16  0:38 ` Anson Huang [this message]
2019-08-16  9:59   ` [PATCH V6 4/4] arm64: dts: imx8mm: Enable cpu-idle driver Daniel Lezcano
2019-08-16 10:08     ` Anson Huang
2019-08-16 10:37       ` Anson Huang

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=1565915925-21009-4-git-send-email-Anson.Huang@nxp.com \
    --to=anson.huang@nxp$(echo .)com \
    --cc=Linux-imx@nxp$(echo .)com \
    --cc=abel.vesa@nxp$(echo .)com \
    --cc=agx@sigxcpu$(echo .)org \
    --cc=andrew.smirnov@gmail$(echo .)com \
    --cc=angus@akkea$(echo .)ca \
    --cc=ccaione@baylibre$(echo .)com \
    --cc=daniel.baluta@nxp$(echo .)com \
    --cc=daniel.lezcano@linaro$(echo .)org \
    --cc=devicetree@vger$(echo .)kernel.org \
    --cc=festevam@gmail$(echo .)com \
    --cc=jun.li@nxp$(echo .)com \
    --cc=kernel@pengutronix$(echo .)de \
    --cc=l.stach@pengutronix$(echo .)de \
    --cc=leonard.crestez@nxp$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=mark.rutland@arm$(echo .)com \
    --cc=ping.bai@nxp$(echo .)com \
    --cc=robh+dt@kernel$(echo .)org \
    --cc=s.hauer@pengutronix$(echo .)de \
    --cc=shawnguo@kernel$(echo .)org \
    --cc=tglx@linutronix$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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