From: Ulrich Hecht <uli+renesas@fpond.eu>
To: linux-renesas-soc@vger.kernel.org
Cc: horms@verge.net.au, geert@linux-m68k.org,
khiem.nguyen.xt@rvc.renesas.com, dien.pham.ry@renesas.com,
takeshi.kihara.df@renesas.com,
Ulrich Hecht <uli+renesas@fpond.eu>
Subject: [PATCH 1/5] arm64: dts: r8a7795: Add cpuidle support for CA57 cores
Date: Fri, 17 Aug 2018 15:19:24 +0200 [thread overview]
Message-ID: <1534511968-19634-2-git-send-email-uli+renesas@fpond.eu> (raw)
In-Reply-To: <1534511968-19634-1-git-send-email-uli+renesas@fpond.eu>
From: Khiem Nguyen <khiem.nguyen.xt@rvc.renesas.com>
Enable cpuidle (core shutdown) support for R-Car H3 CA57 cores.
Parameters were found after evaluation by gaku.inami.xw@bp.renesas.com; they
help to keep the performance and reduce the power consumption.
Signed-off-by: Khiem Nguyen <khiem.nguyen.xt@rvc.renesas.com>
[dien.pham.ry: Apply new cpuidle parameters]
Signed-off-by: Dien Pham <dien.pham.ry@renesas.com>
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu>
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index efc2477..64ab88a 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -123,6 +123,7 @@
power-domains = <&sysc R8A7795_PD_CA57_CPU0>;
next-level-cache = <&L2_CA57>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
clocks =<&cpg CPG_CORE R8A7795_CLK_Z>;
operating-points-v2 = <&cluster0_opp>;
#cooling-cells = <2>;
@@ -135,6 +136,7 @@
power-domains = <&sysc R8A7795_PD_CA57_CPU1>;
next-level-cache = <&L2_CA57>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
clocks =<&cpg CPG_CORE R8A7795_CLK_Z>;
operating-points-v2 = <&cluster0_opp>;
#cooling-cells = <2>;
@@ -147,6 +149,7 @@
power-domains = <&sysc R8A7795_PD_CA57_CPU2>;
next-level-cache = <&L2_CA57>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
clocks =<&cpg CPG_CORE R8A7795_CLK_Z>;
operating-points-v2 = <&cluster0_opp>;
#cooling-cells = <2>;
@@ -159,6 +162,7 @@
power-domains = <&sysc R8A7795_PD_CA57_CPU3>;
next-level-cache = <&L2_CA57>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
clocks =<&cpg CPG_CORE R8A7795_CLK_Z>;
operating-points-v2 = <&cluster0_opp>;
#cooling-cells = <2>;
@@ -221,6 +225,20 @@
cache-unified;
cache-level = <2>;
};
+
+ idle-states {
+ entry-method = "psci";
+
+ CPU_SLEEP_0: cpu-sleep-0 {
+ compatible = "arm,idle-state";
+ arm,psci-suspend-param = <0x0010000>;
+ local-timer-stop;
+ entry-latency-us = <400>;
+ exit-latency-us = <500>;
+ min-residency-us = <4000>;
+ status = "okay";
+ };
+ };
};
extal_clk: extal {
--
2.7.4
next prev parent reply other threads:[~2018-08-17 16:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-17 13:19 [PATCH 0/5] H3/M3-W cpuidle support Ulrich Hecht
2018-08-17 13:19 ` Ulrich Hecht [this message]
2018-09-05 13:29 ` [PATCH 1/5] arm64: dts: r8a7795: Add cpuidle support for CA57 cores Geert Uytterhoeven
2018-08-17 13:19 ` [PATCH 2/5] arm64: dts: r8a7795: Add cpuidle support for CA53 cores Ulrich Hecht
2018-08-17 13:19 ` [PATCH 3/5] arm64: dts: r8a7796: Add cpuidle support for CA57 cores Ulrich Hecht
2018-08-17 13:19 ` [PATCH 4/5] arm64: dts: r8a7796: Add cpuidle support for CA53 cores Ulrich Hecht
2018-08-17 13:19 ` [PATCH 5/5] arm64: dts: r8a7796-m3ulcb: Disable " Ulrich Hecht
2018-08-23 8:22 ` [PATCH 0/5] H3/M3-W cpuidle support Geert Uytterhoeven
2018-08-23 8:30 ` Geert Uytterhoeven
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=1534511968-19634-2-git-send-email-uli+renesas@fpond.eu \
--to=uli+renesas@fpond.eu \
--cc=dien.pham.ry@renesas.com \
--cc=geert@linux-m68k.org \
--cc=horms@verge.net.au \
--cc=khiem.nguyen.xt@rvc.renesas.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=takeshi.kihara.df@renesas.com \
/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).