From patchwork Wed Mar 18 06:00:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Chen X-Patchwork-Id: 6036511 Return-Path: X-Original-To: patchwork-linux-mediatek@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6845FBF90F for ; Wed, 18 Mar 2015 06:08:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BCE4204D9 for ; Wed, 18 Mar 2015 06:08:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D8BB7204D2 for ; Wed, 18 Mar 2015 06:08:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YY79F-00078J-Fb; Wed, 18 Mar 2015 06:08:09 +0000 Received: from mail-pd0-f175.google.com ([209.85.192.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YY78v-0006uU-V5 for linux-mediatek@lists.infradead.org; Wed, 18 Mar 2015 06:07:50 +0000 Received: by pdbop1 with SMTP id op1so32905111pdb.2 for ; Tue, 17 Mar 2015 23:07:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Glhk5q6AKfb6NXnmWEycLHb03dEYF4zK5XBNNUiaDi0=; b=BZx+lcQtES6/8kpp9X6KfNFrviIxjr9yzy3PlenzRYTP87ipr4GeTFdKijHCFjfAdr /RZnenrfz6z5Un4BXIvN/7U+KB5G8WpWQIqqKuQZjXdb5yL09itI5nsh14ZBmNIw/YAg PcsDXSVEsacy85pYgLSj+Kh9QFnX9kcdQSRXIbybU6pDajw787sOg9rhDH9Dwnl254Qi HtyGVsp84V6K6ZHLS8Vqj51zOqeNf87/FF3O6P87EHk9L7/DWB0HYY68OrxnckwRPUYV RdVQ/qYNoUxyxN2fUHLECz4I87vJJ6dEAbAot/DkmPse9UZpWWiO/8D4gEZyPAcOmVcO OyTA== X-Gm-Message-State: ALoCoQmA9UnGig0uaq0Dyqsj19H+/HWDM55YSZiOdy0FzLvfIygnqCS9c5HI0616g3sl/hkw43pu X-Received: by 10.66.234.2 with SMTP id ua2mr137238135pac.137.1426658449647; Tue, 17 Mar 2015 23:00:49 -0700 (PDT) Received: from localhost.localdomain ([111.235.208.115]) by mx.google.com with ESMTPSA id x4sm25474473pas.40.2015.03.17.23.00.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Mar 2015 23:00:48 -0700 (PDT) From: Howard Chen To: Matthias Brugger Subject: [RFC] ARM: dts: mt8173: Add psci-0.2 cpuidle support Date: Wed, 18 Mar 2015 14:00:32 +0800 Message-Id: <1426658432-29333-1-git-send-email-howard.chen@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150317_230750_053898_B95AEB6A X-CRM114-Status: UNSURE ( 7.57 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Howard Chen , srv_heupstream@mediatek.com, Pawel Moll , Ian Campbell , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, Rob Herring , linux-mediatek@lists.infradead.org, Sascha Hauer , Kumar Gala , Eddie Huang , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add device tree for psci-0.2 on mt8173 platform add device tree for cupidle-arm64 on mt8173 platform Signed-off-by: Howard Chen --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 8554ec3..96dff1e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -48,6 +48,8 @@ device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x000>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0_0 &CLUSTER_SLEEP_0>; }; cpu1: cpu@1 { @@ -55,6 +57,7 @@ compatible = "arm,cortex-a53"; reg = <0x001>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0_0 &CLUSTER_SLEEP_0>; }; cpu2: cpu@100 { @@ -62,6 +65,7 @@ compatible = "arm,cortex-a57"; reg = <0x100>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0_0 &CLUSTER_SLEEP_0>; }; cpu3: cpu@101 { @@ -69,15 +73,33 @@ compatible = "arm,cortex-a57"; reg = <0x101>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0_0 &CLUSTER_SLEEP_0>; }; + + idle-states { + entry-method = "arm,psci-0.2"; + + CPU_SLEEP_0_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <600>; + exit-latency-us = <600>; + min-residency-us = <1200>; + }; + + CLUSTER_SLEEP_0: cluster-sleep-0 { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1010000>; + entry-latency-us = <800>; + exit-latency-us = <1000>; + min-residency-us = <2000>; + wakeup-latency-us = <1000>; + }; }; psci { - compatible = "arm,psci"; + compatible = "arm,psci-0.2"; method = "smc"; - cpu_suspend = <0x84000001>; - cpu_off = <0x84000002>; - cpu_on = <0x84000003>; }; uart_clk: dummy26m {