From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932345AbdJJREj (ORCPT ); Tue, 10 Oct 2017 13:04:39 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38045 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932268AbdJJREh (ORCPT ); Tue, 10 Oct 2017 13:04:37 -0400 X-Google-Smtp-Source: AOwi7QB8oUgimiFRwIwLesLpvJbQoJz1NU8WRrmL0RPoSDzzd+aEcJqmBMTmlgmr8Jy5+6h2B6hubQ== Subject: Re: [PATCH] arm64: dts: mediatek: Add cpuidle support for MT2712 To: James Liao , Rob Herring Cc: devicetree@vger.kernel.org, srv_heupstream@mediatek.com, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1504158240-12639-1-git-send-email-jamesjj.liao@mediatek.com> From: Matthias Brugger Message-ID: <6cef95d6-4cc2-8fff-85b0-c55fc79752c3@gmail.com> Date: Tue, 10 Oct 2017 19:04:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1504158240-12639-1-git-send-email-jamesjj.liao@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/31/2017 07:44 AM, James Liao wrote: > Add CPU idle state nodes to enable C1/C2 idle states. > > Signed-off-by: James Liao > --- pushed to v4.14-next/dts64 Thanks. > This patch bases on latest Matthias v4.13-next/dts64 branch [1], > add CPU idle states for MT2712. > > [1] https://github.com/mbgg/linux-mediatek.git > > arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi > index 57d0396..5d4e406 100644 > --- a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi > @@ -39,6 +39,7 @@ > device_type = "cpu"; > compatible = "arm,cortex-a35"; > reg = <0x000>; > + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; > }; > > cpu1: cpu@1 { > @@ -46,6 +47,7 @@ > compatible = "arm,cortex-a35"; > reg = <0x001>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; > }; > > cpu2: cpu@200 { > @@ -53,6 +55,29 @@ > compatible = "arm,cortex-a72"; > reg = <0x200>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; > + }; > + > + idle-states { > + entry-method = "arm,psci"; > + > + CPU_SLEEP_0: cpu-sleep-0 { > + compatible = "arm,idle-state"; > + local-timer-stop; > + entry-latency-us = <100>; > + exit-latency-us = <80>; > + min-residency-us = <2000>; > + arm,psci-suspend-param = <0x0010000>; > + }; > + > + CLUSTER_SLEEP_0: cluster-sleep-0 { > + compatible = "arm,idle-state"; > + local-timer-stop; > + entry-latency-us = <350>; > + exit-latency-us = <80>; > + min-residency-us = <3000>; > + arm,psci-suspend-param = <0x1010000>; > + }; > }; > }; > >