* [PATCH] arm64: dts: berlin4ct: support cpuidle-dt
@ 2015-11-30 13:41 Jisheng Zhang
2015-12-02 10:31 ` Lorenzo Pieralisi
2015-12-06 9:27 ` Sebastian Hesselbarth
0 siblings, 2 replies; 3+ messages in thread
From: Jisheng Zhang @ 2015-11-30 13:41 UTC (permalink / raw)
To: sebastian.hesselbarth, lorenzo.pieralisi, daniel.lezcano,
will.deacon, catalin.marinas, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-kernel, Jisheng Zhang
This patch adds an idle-states node to describe the berlin4ct idle
states and also adds references to the idle-states node in all CPU
nodes. After this patch cpuidle is enabled.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
index 39d0676..3649cea 100644
--- a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
+++ b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
@@ -69,6 +69,7 @@
device_type = "cpu";
reg = <0x0>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
};
cpu1: cpu@1 {
@@ -76,6 +77,7 @@
device_type = "cpu";
reg = <0x1>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
};
cpu2: cpu@2 {
@@ -83,6 +85,7 @@
device_type = "cpu";
reg = <0x2>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
};
cpu3: cpu@3 {
@@ -90,6 +93,19 @@
device_type = "cpu";
reg = <0x3>;
enable-method = "psci";
+ cpu-idle-states = <&CPU_SLEEP_0>;
+ };
+
+ idle-states {
+ entry-method = "psci";
+ CPU_SLEEP_0: cpu-sleep-0 {
+ compatible = "arm,idle-state";
+ local-timer-stop;
+ arm,psci-suspend-param = <0x0010000>;
+ entry-latency-us = <75>;
+ exit-latency-us = <155>;
+ min-residency-us = <1000>;
+ };
};
};
--
2.6.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: berlin4ct: support cpuidle-dt
2015-11-30 13:41 [PATCH] arm64: dts: berlin4ct: support cpuidle-dt Jisheng Zhang
@ 2015-12-02 10:31 ` Lorenzo Pieralisi
2015-12-06 9:27 ` Sebastian Hesselbarth
1 sibling, 0 replies; 3+ messages in thread
From: Lorenzo Pieralisi @ 2015-12-02 10:31 UTC (permalink / raw)
To: Jisheng Zhang
Cc: sebastian.hesselbarth, daniel.lezcano, will.deacon,
catalin.marinas, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree, linux-arm-kernel,
linux-kernel
On Mon, Nov 30, 2015 at 09:41:58PM +0800, Jisheng Zhang wrote:
> This patch adds an idle-states node to describe the berlin4ct idle
> states and also adds references to the idle-states node in all CPU
> nodes. After this patch cpuidle is enabled.
>
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> ---
> arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
>
> diff --git a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
> index 39d0676..3649cea 100644
> --- a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
> +++ b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
> @@ -69,6 +69,7 @@
> device_type = "cpu";
> reg = <0x0>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> };
>
> cpu1: cpu@1 {
> @@ -76,6 +77,7 @@
> device_type = "cpu";
> reg = <0x1>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> };
>
> cpu2: cpu@2 {
> @@ -83,6 +85,7 @@
> device_type = "cpu";
> reg = <0x2>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> };
>
> cpu3: cpu@3 {
> @@ -90,6 +93,19 @@
> device_type = "cpu";
> reg = <0x3>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> + };
> +
> + idle-states {
> + entry-method = "psci";
> + CPU_SLEEP_0: cpu-sleep-0 {
> + compatible = "arm,idle-state";
> + local-timer-stop;
> + arm,psci-suspend-param = <0x0010000>;
> + entry-latency-us = <75>;
> + exit-latency-us = <155>;
> + min-residency-us = <1000>;
> + };
> };
> };
>
> --
> 2.6.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: berlin4ct: support cpuidle-dt
2015-11-30 13:41 [PATCH] arm64: dts: berlin4ct: support cpuidle-dt Jisheng Zhang
2015-12-02 10:31 ` Lorenzo Pieralisi
@ 2015-12-06 9:27 ` Sebastian Hesselbarth
1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Hesselbarth @ 2015-12-06 9:27 UTC (permalink / raw)
To: Jisheng Zhang, lorenzo.pieralisi, daniel.lezcano, will.deacon,
catalin.marinas, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-arm-kernel, linux-kernel
On 30.11.2015 14:41, Jisheng Zhang wrote:
> This patch adds an idle-states node to describe the berlin4ct idle
> states and also adds references to the idle-states node in all CPU
> nodes. After this patch cpuidle is enabled.
>
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Applied to berlin64/dt with Lorenzo's Ack.
Thanks!
Sebastian
> ---
> arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
> index 39d0676..3649cea 100644
> --- a/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
> +++ b/arch/arm64/boot/dts/marvell/berlin4ct.dtsi
> @@ -69,6 +69,7 @@
> device_type = "cpu";
> reg = <0x0>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> };
>
> cpu1: cpu@1 {
> @@ -76,6 +77,7 @@
> device_type = "cpu";
> reg = <0x1>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> };
>
> cpu2: cpu@2 {
> @@ -83,6 +85,7 @@
> device_type = "cpu";
> reg = <0x2>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> };
>
> cpu3: cpu@3 {
> @@ -90,6 +93,19 @@
> device_type = "cpu";
> reg = <0x3>;
> enable-method = "psci";
> + cpu-idle-states = <&CPU_SLEEP_0>;
> + };
> +
> + idle-states {
> + entry-method = "psci";
> + CPU_SLEEP_0: cpu-sleep-0 {
> + compatible = "arm,idle-state";
> + local-timer-stop;
> + arm,psci-suspend-param = <0x0010000>;
> + entry-latency-us = <75>;
> + exit-latency-us = <155>;
> + min-residency-us = <1000>;
> + };
> };
> };
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-06 9:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30 13:41 [PATCH] arm64: dts: berlin4ct: support cpuidle-dt Jisheng Zhang
2015-12-02 10:31 ` Lorenzo Pieralisi
2015-12-06 9:27 ` Sebastian Hesselbarth
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).