From patchwork Thu Jun 4 07:13:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Chen X-Patchwork-Id: 6544411 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 61238C0020 for ; Thu, 4 Jun 2015 07:14:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 844E72075A for ; Thu, 4 Jun 2015 07:14:25 +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 94EF620760 for ; Thu, 4 Jun 2015 07:14:24 +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 1Z0PM8-0004VI-7r; Thu, 04 Jun 2015 07:14:24 +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 1Z0PM6-0004Sx-Lt for linux-mediatek@lists.infradead.org; Thu, 04 Jun 2015 07:14:23 +0000 Received: by pabqy3 with SMTP id qy3so23635330pab.3 for ; Thu, 04 Jun 2015 00:14:00 -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=WHgxiBtD1rkLVyU/7p69wjrVc3HcAAZuDlMpkdtLPs4=; b=H7kkl7tmTVzo0E8pFaTkc03xoscrUUDH6J4MeVR4Z1MwI5wQunKLbsB+bsQ7O7tP5/ xqiegM/kYGsmDId5VazoIqyL/B/wVoK53zpB8I8+weiQNuJinaoRliAcO2LovptU9qcR qFb4SwECtd9yCTeZDWc2RXdL14Oyt5Ynu07Cslo8NaTRLw7OnnM4Mh34g6yCYNsSKRb/ zDMqVmb49bQIoQnczSKvTBcLeFpojeDctgPvkChWgRfbcf5xeXD159VVeDvFoa695zfD 8jNCtpoZ552kSL3Kjfw0DYCu9otHQ046OHj+Kiu16b0/5avCMTOYG85Wp0Ygp204SV1V L2Xg== X-Gm-Message-State: ALoCoQlHE/hKNs8HOD4Nml2qyoZwvF3Czog3zzFfHXhH6gggL/ENUeNGzimFdCqcYl+fvcavaKhU X-Received: by 10.70.44.199 with SMTP id g7mr66108112pdm.27.1433402039997; Thu, 04 Jun 2015 00:13:59 -0700 (PDT) Received: from localhost.localdomain ([101.3.33.11]) by mx.google.com with ESMTPSA id gi1sm2728464pbb.5.2015.06.04.00.13.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 00:13:58 -0700 (PDT) From: Howard Chen To: Matthias Brugger Subject: [PATCH v4] ARM: dts: mt8173: support arm64 cpuidle-dt Date: Thu, 4 Jun 2015 15:13:37 +0800 Message-Id: <1433402017-7711-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-20150604_001422_758344_9C28F867 X-CRM114-Status: UNSURE ( 6.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) 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=-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 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. Changes: v4: - Refine the property ordering. v3: - Add the local-timer-stop property. v2: - Remove the change to the PSCI version. - Remove the cluster idle state. - Fine tune the latency properties of the idle state. Signed-off-by: Howard Chen Acked-by: Lorenzo Pieralisi Acked-by: Daniel Lezcano --- 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 27237a1..5587375 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"; + local-timer-stop; + entry-latency-us = <639>; + exit-latency-us = <680>; + min-residency-us = <1088>; + arm,psci-suspend-param = <0x0010000>; + }; }; };