From patchwork Tue Mar 31 03:24: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: 46564 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 701502159A for ; Tue, 31 Mar 2015 03:25:16 +0000 (UTC) Received: by labtp8 with SMTP id tp8sf823537lab.2 for ; Mon, 30 Mar 2015 20:25:15 -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=rx9oecPUyRf3zruATz/ptFb71YB5Z0omHqOZXfa6oxs=; b=AIAcvdQN09s6rXzDVRAEyD//ziNUJu2M31olfJvrfXWKjMPyQo8+hi2CobzttF8enG 5WodxMOzsI1hdgfgGOQ8BH6xPX6bJMw18Un7GueqThRTv/dUoTtFxQVdkbB8JYUoMN6n xzCLanhwVyq0kR3zFdKV5EU++/Da3lDndNTB3ILQFDqejYPfp72PjJ8ZrVNf7Y2RJnce ES0/2O/Vo/fMUSwDxW3MZgwRqwbLCLxu0hyPrzZ1R7BJPn8uPBD8LvzwvXtztzewtloE /jP5wZSlm82EkpgqmW9o0KUtHWYBm0jy9XzbC62VOF0PkNgVHbVKcFSqDUIid0RwpQ45 VuXw== X-Gm-Message-State: ALoCoQk0nXhRV+5e31T8IP+UnJxUfrmIlCa8ZkpbG7FDxXKrcTU7eb9xBGnKanSYIhfwQwGH2yXa X-Received: by 10.112.14.38 with SMTP id m6mr1991288lbc.12.1427772314998; Mon, 30 Mar 2015 20:25:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.135 with SMTP id 7ls652304lam.8.gmail; Mon, 30 Mar 2015 20:25:14 -0700 (PDT) X-Received: by 10.152.22.229 with SMTP id h5mr29225037laf.21.1427772314823; Mon, 30 Mar 2015 20:25:14 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id o3si8320290laf.47.2015.03.30.20.25.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 20:25:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbug6 with SMTP id ug6so3080562lbb.3 for ; Mon, 30 Mar 2015 20:25:14 -0700 (PDT) X-Received: by 10.112.162.232 with SMTP id yd8mr2593463lbb.41.1427772314683; Mon, 30 Mar 2015 20:25:14 -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.57.201 with SMTP id k9csp1530194lbq; Mon, 30 Mar 2015 20:25:13 -0700 (PDT) X-Received: by 10.66.66.166 with SMTP id g6mr22557909pat.88.1427772312909; Mon, 30 Mar 2015 20:25:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rf10si17436645pab.35.2015.03.30.20.25.11; Mon, 30 Mar 2015 20:25:12 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1754324AbbCaDZH (ORCPT + 27 others); Mon, 30 Mar 2015 23:25:07 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:35101 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752725AbbCaDZD (ORCPT ); Mon, 30 Mar 2015 23:25:03 -0400 Received: by pddn5 with SMTP id n5so6236849pdd.2 for ; Mon, 30 Mar 2015 20:25:02 -0700 (PDT) X-Received: by 10.68.204.199 with SMTP id la7mr10692589pbc.147.1427772302671; Mon, 30 Mar 2015 20:25:02 -0700 (PDT) Received: from localhost.localdomain ([111.235.214.76]) by mx.google.com with ESMTPSA id x1sm12160889pdr.17.2015.03.30.20.24.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 20:25:01 -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] ARM: dts: mt8173: support arm64 cpuidle-dt Date: Tue, 31 Mar 2015 11:24:37 +0800 Message-Id: <1427772277-2414-1-git-send-email-howard.chen@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.169 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: , add an idle-states node to describe the mt8173 cpu idle add a reference to the idle-states node in each CPU node 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 {