From patchwork Tue Mar 18 10:20:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 26472 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B2F2D203C3 for ; Tue, 18 Mar 2014 10:19:23 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf27431387oag.0 for ; Tue, 18 Mar 2014 03:19:23 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=V775l67AqAOoQz43ZAZluc8L6kSxrxTLPfdRBSKZ6co=; b=BR1L+SUR2GNpDKVpwxMID1OG1m/hEhXJQ7+bmSwpiVS0xnug7zYpo8YwgidKBZL3g8 sNhSdOVUeHfx4jxs6K4HqWW7zXga8+I85eJP2g3K2phCGPXy8iNavphF+nkCdxlE3gKK V5l9a1y66O1bH2l2eYDh+g0wTkUciPK7cYW/+pqXfuekumcQCpPNginbtUdmAFCW2fQF 5B8tT6UuxYxyXMJlqV8laOlKbeZAbaQKYz7f+tYywtnYs5ZYv8hViAD7KbPKFF0OoHfW fotlGQ/v8DkDljtxJNgLN0JAvBzGTmuTITWsaiHEz6hJCRikgxaSaIIjiqc0l8rvdfXO /rmQ== X-Gm-Message-State: ALoCoQlagOGrWmf6UP/NeyOdfOvG1Bv0kxbTQXXzhBG6o9iWGQK2jaS7k2+5leuM7MT6zXrGV8fH X-Received: by 10.50.178.200 with SMTP id da8mr7593792igc.6.1395137963292; Tue, 18 Mar 2014 03:19:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.138 with SMTP id 10ls253996qgj.92.gmail; Tue, 18 Mar 2014 03:19:23 -0700 (PDT) X-Received: by 10.58.91.101 with SMTP id cd5mr23674746veb.5.1395137963131; Tue, 18 Mar 2014 03:19:23 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id cb2si1552604vcb.135.2014.03.18.03.19.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 03:19:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lh14so6850271vcb.6 for ; Tue, 18 Mar 2014 03:19:23 -0700 (PDT) X-Received: by 10.58.96.36 with SMTP id dp4mr3680930veb.21.1395137963050; Tue, 18 Mar 2014 03:19:23 -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.220.78.9 with SMTP id i9csp193372vck; Tue, 18 Mar 2014 03:19:22 -0700 (PDT) X-Received: by 10.68.248.7 with SMTP id yi7mr32192255pbc.31.1395137962085; Tue, 18 Mar 2014 03:19:22 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yp10si12139647pab.134.2014.03.18.03.19.21; Tue, 18 Mar 2014 03:19:21 -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 S1753748AbaCRKTU (ORCPT + 9 others); Tue, 18 Mar 2014 06:19:20 -0400 Received: from service87.mimecast.com ([91.220.42.44]:54647 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753994AbaCRKTT (ORCPT ); Tue, 18 Mar 2014 06:19:19 -0400 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Tue, 18 Mar 2014 10:19:17 +0000 Received: from red-moon.cambridge.arm.com ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 18 Mar 2014 10:19:26 +0000 From: Lorenzo Pieralisi To: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, Lorenzo Pieralisi , Mark Rutland , Sudeep Holla , Catalin Marinas , Charles Garcia Tobin , Nicolas Pitre , Rob Herring , Grant Likely , Peter De Schrijver , Santosh Shilimkar , Daniel Lezcano , Amit Kucheria , Vincent Guittot , Antti Miettinen , Stephen Boyd , Kevin Hilman , Sebastian Capella , Tomasz Figa Subject: [PATCH RFC 4/4] arm64: boot: dts: update rtsm aemv8 dts with PSCI and idle states Date: Tue, 18 Mar 2014 10:20:28 +0000 Message-Id: <1395138028-19630-5-git-send-email-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1395138028-19630-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1395138028-19630-1-git-send-email-lorenzo.pieralisi@arm.com> X-OriginalArrivalTime: 18 Mar 2014 10:19:26.0812 (UTC) FILETIME=[8A7D31C0:01CF4293] X-MC-Unique: 114031810191715801 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: lorenzo.pieralisi@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 updates the RTSM dts file with PSCI bindings and nodes describing the AEMv8 model idle states parameters. PSCI function IDs compliancy with PSCI v0.2 is still under development so this patch provides PSCI function IDs for demonstration purposes only. Signed-off-by: Lorenzo Pieralisi --- arch/arm64/boot/dts/rtsm_ve-aemv8a.dts | 50 ++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts b/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts index d79de9c..7e2de34 100644 --- a/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts +++ b/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts @@ -27,37 +27,71 @@ serial3 = &v2m_serial3; }; + psci { + compatible = "arm,psci"; + method = "smc"; + /* + * Function IDs usage and compliancy with PSCI v0.2 still + * under discussion. Current IDs should be considered + * temporary for demonstration purposes. + */ + cpu_suspend = <0x84000001>; + cpu_off = <0x84000002>; + cpu_on = <0x84000003>; + }; + cpus { #address-cells = <2>; #size-cells = <0>; + idle-states { + entry-method = "arm,psci"; + + CLUSTER_SLEEP_0: cluster-sleep-0 { + compatible = "arm,idle-state"; + index = <1>; + entry-method-param = <0x1010000>; + entry-latency-us = <500>; + exit-latency-us = <1000>; + min-residency-us = <2500>; + CPU_SLEEP_0: cpu-sleep-0 { + compatible = "arm,idle-state"; + index = <0>; + entry-method-param = <0x0010000>; + entry-latency-us = <40>; + exit-latency-us = <100>; + min-residency-us = <150>; + }; + }; + }; + cpu@0 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x0>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; cpu@1 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x1>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; cpu@2 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x2>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; cpu@3 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x3>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; };