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: 49510 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C656C2154F for ; Thu, 4 Jun 2015 07:14:07 +0000 (UTC) Received: by laboh3 with SMTP id oh3sf9080541lab.0 for ; Thu, 04 Jun 2015 00:14:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=+93H59CaVfMvie8m4/JGzoogqYrrBm0WyCU7HPtuYZw=; b=deHeKPm4DkWo/JjH76HZb0loo4IA8kBRetD9xvMVFgAtTl21G5NedIcGEC1+71mPHx nBH/3dLp2js7lGUeWG7s1U847JJ7+u1WgsAZeYjJdE0jdScH1/vuS0C5LVZM6m1zjkfZ cEuH44IdESNFgJnH1ddhFUFBMNoJJGXByHf6mm331sdw/G5lle8BMJdQngW3uWI+umHr yWLXZvFurNZdPDIlPXz5eFggSlRfPXSsqpcoI/0ZMlMp4+WfI908IbOAKzPi6AN1yhg9 yqVNDIvzrdEur6nazd/vGmmJcnQuL/yDTG6GTxP9TSH8KRq5o0s7iHvbJgWLTnXUpg0B 0BWw== X-Gm-Message-State: ALoCoQkbdpO0MuiGAVWUA7w+YwaNQQHR2jVceIeQBguE3cpFECjQ7BDG1HIXqsi3G73y64sFp61X X-Received: by 10.180.198.172 with SMTP id jd12mr19827768wic.5.1433402046580; Thu, 04 Jun 2015 00:14:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.194 with SMTP id 2ls174525law.0.gmail; Thu, 04 Jun 2015 00:14:06 -0700 (PDT) X-Received: by 10.152.87.108 with SMTP id w12mr36115456laz.57.1433402046421; Thu, 04 Jun 2015 00:14:06 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id pw2si1068053lbb.33.2015.06.04.00.14.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 00:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbqq2 with SMTP id qq2so21407571lbb.3 for ; Thu, 04 Jun 2015 00:14:06 -0700 (PDT) X-Received: by 10.112.182.4 with SMTP id ea4mr31044680lbc.35.1433402046279; Thu, 04 Jun 2015 00:14:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp372537lbb; Thu, 4 Jun 2015 00:14:04 -0700 (PDT) X-Received: by 10.66.141.109 with SMTP id rn13mr65312056pab.127.1433402043865; Thu, 04 Jun 2015 00:14:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si4579815pdn.60.2015.06.04.00.14.02; Thu, 04 Jun 2015 00:14:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751373AbbFDHOB (ORCPT + 7 others); Thu, 4 Jun 2015 03:14:01 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36235 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbbFDHOA (ORCPT ); Thu, 4 Jun 2015 03:14:00 -0400 Received: by pabqy3 with SMTP id qy3so23635308pab.3 for ; Thu, 04 Jun 2015 00:14:00 -0700 (PDT) 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 Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Howard Chen , Eddie Huang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, Sascha Hauer , , Bobby Batacharia , Daniel Lezcano , Amit Kucheria 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 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: howard.chen@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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>; + }; }; };