From patchwork Fri May 29 07:01:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Chen X-Patchwork-Id: 6504631 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 586DCC0020 for ; Fri, 29 May 2015 07:01:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 88B2B2071B for ; Fri, 29 May 2015 07:01:29 +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 A200220546 for ; Fri, 29 May 2015 07:01:28 +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 1YyEIJ-0006ji-RD; Fri, 29 May 2015 07:01:27 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YyEI5-0006br-5V for linux-mediatek@lists.infradead.org; Fri, 29 May 2015 07:01:13 +0000 Received: by pabru16 with SMTP id ru16so46403878pab.1 for ; Fri, 29 May 2015 00:00:50 -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=gPtPrNQSm1deeK749RNBtHBM+1CHNhp79qPNzjQR614=; b=U4ekdzwrxv3l347WyI6UiP/eNNeA3BAY3flvtXm63haTAxzfSX7CNs45BkdC4yDixo QqSzTgmr1fNWlzqzNpqX645bLbVe2JC/gW5M4pNS0OXNtRlI7iFi6LXYaoV6UI8VRosr oYh0xplN9AdlBS3nVBvx+C+g6wSVaeioeFae2ac3G+GjCOjLreRGJMWrygmcxthUOT1m DU/28oRYeZ3HwDBUQBwW/hqcI0laj8swN++UuzJrgAOZGrVvIeiLa114uoEl+4UaOpmN bsAsdlzf+tQ6Nr5BgfkJGqpzS6Q3UYKgKXINWtO2GXqyvNcCw0c9IEJ+9Hlz8u5oySiX +U1Q== X-Gm-Message-State: ALoCoQmQm/HYnzb0t5BqUpTnwTmx6t5RyLzwoM1jlL9Wm4AaFGtZOhT7TeP7xvKAjh+Ny707FpAa X-Received: by 10.68.116.132 with SMTP id jw4mr12277617pbb.107.1432882850785; Fri, 29 May 2015 00:00:50 -0700 (PDT) Received: from localhost.localdomain ([111.235.211.114]) by mx.google.com with ESMTPSA id ap9sm4472631pad.42.2015.05.29.00.00.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 May 2015 00:00:49 -0700 (PDT) From: Howard Chen To: Matthias Brugger Subject: [PATCH v3] ARM: dts: mt8173: support arm64 cpuidle-dt Date: Fri, 29 May 2015 15:01:46 +0800 Message-Id: <1432882906-7940-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-20150529_000113_276327_51C61C3F X-CRM114-Status: UNSURE ( 6.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) Cc: Mark Rutland , devicetree@vger.kernel.org, Howard Chen , lorenzo.pieralisi@arm.com, srv_heupstream@mediatek.com, Pawel Moll , Ian Campbell , Catalin Marinas , Bobby Batacharia , Daniel Lezcano , Will Deacon , linux-kernel@vger.kernel.org, Amit Kucheria , 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=-3.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, 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 This patch adds an idle-states node to describe the mt8173 idle states and also adds references to the idle-states node in all CPU nodes. Signed-off-by: Howard Chen Acked-by: Lorenzo Pieralisi --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 924fdb6..47e8d56 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -49,6 +49,8 @@ device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x000>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu1: cpu@1 { @@ -56,6 +58,7 @@ compatible = "arm,cortex-a53"; reg = <0x001>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu2: cpu@100 { @@ -63,6 +66,7 @@ compatible = "arm,cortex-a57"; reg = <0x100>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu3: cpu@101 { @@ -70,6 +74,20 @@ compatible = "arm,cortex-a57"; reg = <0x101>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; + }; + + idle-states { + entry-method = "arm,psci"; + + CPU_SLEEP_0: cpu-sleep-0 { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <639>; + exit-latency-us = <680>; + min-residency-us = <1088>; + local-timer-stop; + }; }; };