From patchwork Wed Jun 11 16:18:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 31783 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 71354203C2 for ; Wed, 11 Jun 2014 16:21:15 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id dc16sf4274430qab.1 for ; Wed, 11 Jun 2014 09:21: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:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=G5uZNngIEYgRb9OpeK3tAf7eaBFjLDn8Uc/iNfi9cO0=; b=CL+Ye6ILeXj4bIHkNsnReVyoN+sOPflmVuvHo5GbTy5qxhIviaTX9mbMzFvccWK/GS nPGMTnFclCHP+6kmBHQIzeTt0iQnQ4LhRhrcxLrOEEx9Kh+995cSRSWPt3iR12OSSRgE qYTpZG++RqDt64uwUouDnmQ7Lx9BfCDLAhhI7pveitWhEhD2bscA8bHGQttp/wYTf1PQ dEXRAzj2gASoZWNHNApIHx383mUvb5CdK878hGOXeGEuMh/Rj5123CK6+1vKoWjWuEwK Ji2tMBEqPA7MELofsO1TENLNlx2R8BQdLfdYWVLZFUFI0MtDMPJv6FCiPcZKKSdZX0Y/ EfwQ== X-Gm-Message-State: ALoCoQng6FRKNxZRWo6xIZKa83wnyEKgf7gM48y4v4+Q8dxVZKI4pTPFxiQc9cH3T1jeRrMgs1HD X-Received: by 10.236.216.5 with SMTP id f5mr6234813yhp.10.1402503675239; Wed, 11 Jun 2014 09:21:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.51 with SMTP id 48ls2682371qgu.23.gmail; Wed, 11 Jun 2014 09:21:15 -0700 (PDT) X-Received: by 10.53.10.234 with SMTP id ed10mr781477vdd.86.1402503675057; Wed, 11 Jun 2014 09:21:15 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id yl10si14373911veb.92.2014.06.11.09.21.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Jun 2014 09:21:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id jx11so568985veb.13 for ; Wed, 11 Jun 2014 09:21:15 -0700 (PDT) X-Received: by 10.220.253.132 with SMTP id na4mr3668711vcb.39.1402503674963; Wed, 11 Jun 2014 09:21: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.221.54.6 with SMTP id vs6csp316543vcb; Wed, 11 Jun 2014 09:21:14 -0700 (PDT) X-Received: by 10.140.33.181 with SMTP id j50mr49855017qgj.81.1402503674448; Wed, 11 Jun 2014 09:21:14 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id d4si31149160qge.70.2014.06.11.09.21.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jun 2014 09:21:14 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WulFZ-0007oe-1v; Wed, 11 Jun 2014 16:19:45 +0000 Received: from service88.mimecast.com ([195.130.217.12]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WulF2-0007U8-1e for linux-arm-kernel@lists.infradead.org; Wed, 11 Jun 2014 16:19:13 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Wed, 11 Jun 2014 17:18:42 +0100 Received: from red-moon.cambridge.arm.com ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 11 Jun 2014 17:18:35 +0100 From: Lorenzo Pieralisi To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 6/6] arm64: boot: dts: update rtsm aemv8 dts with PSCI and idle states Date: Wed, 11 Jun 2014 17:18:40 +0100 Message-Id: <1402503520-8611-7-git-send-email-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1402503520-8611-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1402503520-8611-1-git-send-email-lorenzo.pieralisi@arm.com> X-OriginalArrivalTime: 11 Jun 2014 16:18:35.0303 (UTC) FILETIME=[CB80BB70:01CF8590] X-MC-Unique: 114061117184201801 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140611_091912_391111_1A1C3D00 X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [195.130.217.12 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [195.130.217.12 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Mark Rutland , Paul Walmsley , Lorenzo Pieralisi , Vincent Guittot , Kevin Hilman , Nicolas Pitre , Catalin Marinas , Peter De Schrijver , Daniel Lezcano , Stephen Boyd , Amit Kucheria , Chander Kashyap , Sebastian Capella , Rob Herring , Santosh Shilimkar , Mark Brown , Sudeep Holla , Grant Likely , Tomasz Figa , Antti Miettinen , Charles Garcia Tobin X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lorenzo.pieralisi@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 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 This patch updates the RTSM dts file with PSCI bindings and nodes describing the AEMv8 model idle states parameters. Signed-off-by: Lorenzo Pieralisi --- arch/arm64/boot/dts/rtsm_ve-aemv8a.dts | 44 +++++++++++++++++++++++++++------- 1 file changed, 36 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..4051ffb 100644 --- a/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts +++ b/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts @@ -27,37 +27,65 @@ serial3 = &v2m_serial3; }; + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + cpu_suspend = <0xc4000001>; + cpu_off = <0x84000002>; + cpu_on = <0xc4000003>; + }; + cpus { #address-cells = <2>; #size-cells = <0>; + idle-states { + entry-method = "arm,psci"; + + CPU_SLEEP_0: cpu-sleep-0 { + compatible = "arm,idle-state"; + entry-method-param = <0x0010000>; + entry-latency-us = <40>; + exit-latency-us = <100>; + min-residency-us = <150>; + }; + + CLUSTER_SLEEP_0: cluster-sleep-0 { + compatible = "arm,idle-state"; + entry-method-param = <0x1010000>; + entry-latency-us = <500>; + exit-latency-us = <1000>; + min-residency-us = <2500>; + }; + }; + 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>; }; };