From patchwork Fri May 29 07:01:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Howard Chen X-Patchwork-Id: 49143 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 12F58218E7 for ; Fri, 29 May 2015 07:00:58 +0000 (UTC) Received: by lbcue7 with SMTP id ue7sf16079664lbc.3 for ; Fri, 29 May 2015 00:00:56 -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=I1KQPjis0XCjXQVWFlNsEC4kcebe5wcMTp7J1D+ZXWE=; b=dP10RiNiTuwlNJ6eKFqZSspSUSOVJmV5tc5JZypOZtdSiqQHFXVwqURICmg5pi+knS jXz1mRCkzZ/08JvI1adZaBgW01AOlvcTQWj0bNrQrfTfJv4VDR6f60YwcnjSS+jK51iE Y5qsipC92sZvfBGHKOp1RyAnbDxBJDITT96oEfO4mbxzyVBXkgYPOLGvtnqxqlmVj2Zt asjh5ddtzeggNgOSYbPvhCcNxgUMwiQzHd44zycyGLKT2BMlSaGQNzoyWfxK3JwUXI4R 6xaXv+9YXs9zh79IeC9N+5Tzpea2cJvY/eat7H8+8u6K/6A4dGLgIsFDlyfZpoalnL4V nysw== X-Gm-Message-State: ALoCoQmeO4wKX0jV2pH/DvOCMRy4lZ9UEhbuL4JZqAlXZ+qZH56ViGMUri8pATRbaCKcpXJecmwE X-Received: by 10.152.2.169 with SMTP id 9mr6065788lav.1.1432882856807; Fri, 29 May 2015 00:00:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.39 with SMTP id dd7ls303101lac.60.gmail; Fri, 29 May 2015 00:00:56 -0700 (PDT) X-Received: by 10.152.3.97 with SMTP id b1mr6623129lab.54.1432882856663; Fri, 29 May 2015 00:00:56 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id r10si3925397laj.147.2015.05.29.00.00.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 00:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by labko7 with SMTP id ko7so45166659lab.2 for ; Fri, 29 May 2015 00:00:56 -0700 (PDT) X-Received: by 10.152.4.137 with SMTP id k9mr6425325lak.29.1432882856436; Fri, 29 May 2015 00:00:56 -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 hn6csp70170lbb; Fri, 29 May 2015 00:00:54 -0700 (PDT) X-Received: by 10.68.191.229 with SMTP id hb5mr12481212pbc.126.1432882854073; Fri, 29 May 2015 00:00:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si7131992pdr.195.2015.05.29.00.00.53; Fri, 29 May 2015 00:00:54 -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 S1753551AbbE2HAw (ORCPT + 7 others); Fri, 29 May 2015 03:00:52 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:33948 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189AbbE2HAv (ORCPT ); Fri, 29 May 2015 03:00:51 -0400 Received: by pabru16 with SMTP id ru16so46403855pab.1 for ; Fri, 29 May 2015 00:00:50 -0700 (PDT) X-Received: by 10.68.116.132 with SMTP id jw4mr12277617pbb.107.1432882850785; Fri, 29 May 2015 00:00:50 -0700 (PDT) Received: from localhost.localdomain ([111.235.211.114]) by mx.google.com with ESMTPSA id ap9sm4472631pad.42.2015.05.29.00.00.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 May 2015 00:00:49 -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 v3] ARM: dts: mt8173: support arm64 cpuidle-dt Date: Fri, 29 May 2015 15:01:46 +0800 Message-Id: <1432882906-7940-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.43 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 | 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 924fdb6..47e8d56 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"; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <639>; + exit-latency-us = <680>; + min-residency-us = <1088>; + local-timer-stop; + }; }; };