From patchwork Tue Apr 7 08:05:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Chen X-Patchwork-Id: 46808 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 C01F4214BA for ; Tue, 7 Apr 2015 08:04:49 +0000 (UTC) Received: by labgx2 with SMTP id gx2sf11109753lab.1 for ; Tue, 07 Apr 2015 01:04:48 -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=37uLiLCuKBSnZU2O3WopvUrTtVT5x5SDGhYjUp830us=; b=nGxE+Vb/DWuIxT0gnpBSs7Uh7PdrCaQKJSsA7C91ZfkbPRi8meuIOqlxioJruZkSjM AZlU4JSVh+UR7SzpgN9xM3uG94dFJkkmAovaUuUkvaWWRDWTeesgvedisckc/NSsqPuJ KhqewY3ihbp2igqwyXUmCYCeDDT9F2vGo+S+DZ69LTM2UwbZzVzTpv3LPgsojYCiaar5 CjovhOF51qxnOuacS5LqEXwhTvRI6Fo4RaI67TY2931J/ke9IBigWVML5ydwPdAg7ShH XHuxOUtVGG+GASI+/bx1nAOA1jcMqHiXcabb/owpqy5U2PAPfkQ6p47xku2Suzdy9FMb F13w== X-Gm-Message-State: ALoCoQkKMsiCzYJ0RCgOTk/ausIjBv6mK0B3cVY7FVFvvGacuAjtb0a6JIk1qr1AWm6lnq9satYs X-Received: by 10.112.98.38 with SMTP id ef6mr3816783lbb.3.1428393888750; Tue, 07 Apr 2015 01:04:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.42 with SMTP id j10ls9376laf.27.gmail; Tue, 07 Apr 2015 01:04:48 -0700 (PDT) X-Received: by 10.112.160.165 with SMTP id xl5mr17042977lbb.109.1428393888590; Tue, 07 Apr 2015 01:04:48 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id u2si5343323laz.161.2015.04.07.01.04.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 01:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by laat2 with SMTP id t2so29098898laa.1 for ; Tue, 07 Apr 2015 01:04:48 -0700 (PDT) X-Received: by 10.152.36.2 with SMTP id m2mr6016931laj.72.1428393888499; Tue, 07 Apr 2015 01:04:48 -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.67.65 with SMTP id l1csp272796lbt; Tue, 7 Apr 2015 01:04:47 -0700 (PDT) X-Received: by 10.67.16.110 with SMTP id fv14mr34224136pad.39.1428393886740; Tue, 07 Apr 2015 01:04:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ta8si10179775pac.175.2015.04.07.01.04.45; Tue, 07 Apr 2015 01:04:46 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751242AbbDGIEo (ORCPT + 5 others); Tue, 7 Apr 2015 04:04:44 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:33585 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbbDGIEh (ORCPT ); Tue, 7 Apr 2015 04:04:37 -0400 Received: by paboj16 with SMTP id oj16so70920519pab.0 for ; Tue, 07 Apr 2015 01:04:36 -0700 (PDT) X-Received: by 10.70.89.138 with SMTP id bo10mr34766101pdb.146.1428393876854; Tue, 07 Apr 2015 01:04:36 -0700 (PDT) Received: from localhost.localdomain ([111.235.214.169]) by mx.google.com with ESMTPSA id i6sm7068872pdp.53.2015.04.07.01.04.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Apr 2015 01:04:35 -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 Subject: [PATCH v2] ARM: dts: mt8173: support arm64 cpuidle-dt Date: Tue, 7 Apr 2015 16:05:05 +0800 Message-Id: <1428393905-32166-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.215.41 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. Signed-off-by: Howard Chen --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 8554ec3..0d31a34 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>; }; cpu1: cpu@1 { @@ -55,6 +57,7 @@ compatible = "arm,cortex-a53"; reg = <0x001>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu2: cpu@100 { @@ -62,6 +65,7 @@ compatible = "arm,cortex-a57"; reg = <0x100>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu3: cpu@101 { @@ -69,6 +73,19 @@ 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 = <328>; + min-residency-us = <1088>; + }; }; };