From patchwork Wed Jun 11 16:18:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 31780 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 384CA21134 for ; Wed, 11 Jun 2014 16:18:47 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id va2sf3191299obc.6 for ; Wed, 11 Jun 2014 09:18:46 -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=tFpTpD+5pSqmWSpKbPOGYoOf1b1c21F7Gwe/wBrbWd8=; b=j3RMEIjfyZJOqqnkm9XS6Rsm+SungmizY54hxyd4Wyagtc68ft1tJyCWCgmoN1HKmo P09496I43xcccqAeT4kZ0AurPUxv02Q/iulrW0V6li6yfxIOAqoIzRZ2RlWh6kMCUOYG azO8NVsPg21i0i/7TfEcxn8TMwxQ0TFo6/7pTBpzyZlcMHY8sor/LgNvWgmtibioQOtl 3U68Yfgzd+ws9x24WxnAiDOoqW4JuozA2K6HohzceW7Kee740CIf4jDdr9z8GmbGY2GK tMaB/ci0H9kxRvvZDcdjiD2eMecdX7BsYoJdn79xXyEIBybwK7ymdnhdJdL0SbYIR3Cd kgUQ== X-Gm-Message-State: ALoCoQk0L3tT01XlBZ42TSAWvc8uo8aSWeWX7Wem4UgmLgQGBfjmr9knKNSMqWEXdhgCNjCONMHZ X-Received: by 10.182.249.115 with SMTP id yt19mr5465490obc.25.1402503526695; Wed, 11 Jun 2014 09:18:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.14 with SMTP id o14ls2611655qgo.63.gmail; Wed, 11 Jun 2014 09:18:46 -0700 (PDT) X-Received: by 10.220.80.70 with SMTP id s6mr1760578vck.44.1402503526554; Wed, 11 Jun 2014 09:18:46 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id cx18si3190368vec.89.2014.06.11.09.18.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Jun 2014 09:18:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id oz11so6805914veb.15 for ; Wed, 11 Jun 2014 09:18:46 -0700 (PDT) X-Received: by 10.220.167.2 with SMTP id o2mr39529643vcy.8.1402503526376; Wed, 11 Jun 2014 09:18:46 -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 vs6csp316340vcb; Wed, 11 Jun 2014 09:18:45 -0700 (PDT) X-Received: by 10.68.231.229 with SMTP id tj5mr6375636pbc.101.1402503524638; Wed, 11 Jun 2014 09:18:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oj11si1085645pab.127.2014.06.11.09.18.44; Wed, 11 Jun 2014 09:18:44 -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 S932902AbaFKQSm (ORCPT + 8 others); Wed, 11 Jun 2014 12:18:42 -0400 Received: from service87.mimecast.com ([91.220.42.44]:55290 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755842AbaFKQSj (ORCPT ); Wed, 11 Jun 2014 12:18:39 -0400 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:37 +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:30 +0100 From: Lorenzo Pieralisi To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Cc: 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 , Mark Brown , Paul Walmsley , Chander Kashyap Subject: [PATCH v4 2/6] Documentation: devicetree: psci: define CPU suspend parameter Date: Wed, 11 Jun 2014 17:18:36 +0100 Message-Id: <1402503520-8611-3-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:30.0693 (UTC) FILETIME=[C8C14D50:01CF8590] X-MC-Unique: 114061117183710701 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 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: , OS layers built on top of PSCI to enter low-power states require the power_state parameter to be passed to the PSCI CPU suspend method. This parameter is specific to a power state and platform specific, therefore must be provided by firmware to the OS in order to enable proper call sequence. This patch adds a property in the PSCI bindings that describes how the CPU suspend power_state parameter should be defined in DT in all device nodes that rely on PSCI CPU suspend method usage. Reviewed-by: Sebastian Capella Signed-off-by: Lorenzo Pieralisi --- Documentation/devicetree/bindings/arm/psci.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation/devicetree/bindings/arm/psci.txt index b4a58f3..fae3eed 100644 --- a/Documentation/devicetree/bindings/arm/psci.txt +++ b/Documentation/devicetree/bindings/arm/psci.txt @@ -50,6 +50,14 @@ Main node optional properties: - migrate : Function ID for MIGRATE operation +Device tree nodes that require usage of PSCI CPU_SUSPEND function (ie idle +states bindings[1]) must specify the following properties: + +- entry-method-param + Usage: Required for idle states bindings [1]. + Value type: + Definition: power_state parameter to pass to the PSCI + suspend call. Example: @@ -64,7 +72,6 @@ Case 1: PSCI v0.1 only. migrate = <0x95c10003>; }; - Case 2: PSCI v0.2 only psci { @@ -88,3 +95,6 @@ Case 3: PSCI v0.2 and PSCI v0.1. ... }; + +[1] Kernel documentation - ARM idle states bindings + Documentation/devicetree/bindings/arm/idle-states.txt