From patchwork Wed Mar 18 06:00:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Chen X-Patchwork-Id: 45918 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 6EDF72153C for ; Wed, 18 Mar 2015 06:00:59 +0000 (UTC) Received: by labgm9 with SMTP id gm9sf5496052lab.1 for ; Tue, 17 Mar 2015 23:00:58 -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=9GYWwzmvGO0avA+yFCG4X/2ntAZttTgFIjoe9jJerOY=; b=S7b9ryybkWJG7zsSbTVUZy/Q9BArCYkWxLgzX6zf5b39NrWla1jgsJ3YY9z2Fl8/d9 73t87G+HzvDDrY1Ab8Hx4Gq5tLx0P0UwJX3b3CYpFuCuw6aCcwKd58ytZsiV5yrUPE4f w2m3HL++njl9IBrpRF5ETR/YYsMMHdcysbMv41xz0HfiasHgP6yARPjyXgxcuLpO/wBQ w8hKVb1CW0VQaK0yixnwXQiGE1Dp89lUcy1jZSkirvubMWHGTZEv/qT5yIo56xa+k6gN SOWE9zSdYSvcrMs19UBtE8ABIqQVx5/EmWwHLqYcJDN+1quApgZO1YhLoEBkJHimrkUw ARzw== X-Gm-Message-State: ALoCoQm7gjTNsBs9wZRLcDhMXHBqMZMe14YSgr8iOpmSpnh9/tPJfA1BKDJYEYZ0QJ5B222xdbiK X-Received: by 10.152.21.9 with SMTP id r9mr10714348lae.0.1426658458329; Tue, 17 Mar 2015 23:00:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.104 with SMTP id ln8ls102641lac.94.gmail; Tue, 17 Mar 2015 23:00:57 -0700 (PDT) X-Received: by 10.112.144.41 with SMTP id sj9mr62863849lbb.3.1426658457550; Tue, 17 Mar 2015 23:00:57 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id 7si12123814lai.138.2015.03.17.23.00.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 23:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lagg8 with SMTP id g8so27320366lag.1 for ; Tue, 17 Mar 2015 23:00:57 -0700 (PDT) X-Received: by 10.112.8.101 with SMTP id q5mr57346227lba.19.1426658457465; Tue, 17 Mar 2015 23:00:57 -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.35.133 with SMTP id h5csp948206lbj; Tue, 17 Mar 2015 23:00:56 -0700 (PDT) X-Received: by 10.70.42.45 with SMTP id k13mr110844594pdl.43.1426658455678; Tue, 17 Mar 2015 23:00:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si33845951pdn.84.2015.03.17.23.00.54; Tue, 17 Mar 2015 23:00:55 -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 S932812AbbCRGAx (ORCPT + 5 others); Wed, 18 Mar 2015 02:00:53 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33515 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932810AbbCRGAu (ORCPT ); Wed, 18 Mar 2015 02:00:50 -0400 Received: by pabxg6 with SMTP id xg6so19516544pab.0 for ; Tue, 17 Mar 2015 23:00:49 -0700 (PDT) X-Received: by 10.66.234.2 with SMTP id ua2mr137238135pac.137.1426658449647; Tue, 17 Mar 2015 23:00:49 -0700 (PDT) Received: from localhost.localdomain ([111.235.208.115]) by mx.google.com with ESMTPSA id x4sm25474473pas.40.2015.03.17.23.00.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Mar 2015 23:00:48 -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: [RFC] ARM: dts: mt8173: Add psci-0.2 cpuidle support Date: Wed, 18 Mar 2015 14:00:32 +0800 Message-Id: <1426658432-29333-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.49 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 device tree for psci-0.2 on mt8173 platform add device tree for cupidle-arm64 on mt8173 platform 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 {