From patchwork Tue May 6 18:04:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 29727 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F37A9202E6 for ; Tue, 6 May 2014 18:03:21 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf50925878iec.4 for ; Tue, 06 May 2014 11:03:21 -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=toS/Zl8OfNBM2gORvGl0ONYTLIRcD5RwBzvbrSmhRu4=; b=RZuv2Xeq9Y47qvsuYwikSLGvJWaMp2BsFVvuwhZe/s6jrBvHiAb7fBM/H9M6PYu5dN foGtF18+7s0ax72GshQt0Z7LS+03zOKEwhkrXgWYlkOFDZCoSJzx8KQBKY6AHAJ1yW+F 5IkkFIX7iHEHXEvFAGZLwwKdfZeJ1ApEvGOSBLOVThKVas63ELk28904MecZMQ7EN+Xq eFz8PnCqfZ81lcPmwYJgao+QmGwYzeKbn7ufPkLn2b44SQBS/2WOkFGGjJLMsLe3Zn61 IjdOR2JgGCSVF54KWuFTyQlGsLmjabvsWGcdOppBtNLyh2cg8VthD8c0kqYO3w6taf08 gxCA== X-Gm-Message-State: ALoCoQndFCBExFRvOAehMJNqxV2CqK1IPb8K+N32O/duWgNCuDQru9kbaqqyahpFMyE+vJLb/Yl4 X-Received: by 10.50.111.15 with SMTP id ie15mr1838124igb.2.1399399401528; Tue, 06 May 2014 11:03:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.4 with SMTP id a4ls1246376qga.45.gmail; Tue, 06 May 2014 11:03:21 -0700 (PDT) X-Received: by 10.58.74.201 with SMTP id w9mr1623172vev.56.1399399401401; Tue, 06 May 2014 11:03:21 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id tv3si2448703vdc.90.2014.05.06.11.03.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 11:03:21 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id pa12so9887116veb.40 for ; Tue, 06 May 2014 11:03:21 -0700 (PDT) X-Received: by 10.58.220.161 with SMTP id px1mr35155372vec.13.1399399401309; Tue, 06 May 2014 11:03:21 -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.221.72 with SMTP id ib8csp244342vcb; Tue, 6 May 2014 11:03:20 -0700 (PDT) X-Received: by 10.66.153.80 with SMTP id ve16mr9023565pab.143.1399399400127; Tue, 06 May 2014 11:03:20 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qb5si471296pbb.28.2014.05.06.11.03.19; Tue, 06 May 2014 11:03:19 -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 S1752524AbaEFSDQ (ORCPT + 8 others); Tue, 6 May 2014 14:03:16 -0400 Received: from service87.mimecast.com ([91.220.42.44]:50130 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752430AbaEFSDN (ORCPT ); Tue, 6 May 2014 14:03:13 -0400 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Tue, 06 May 2014 19:03:11 +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); Tue, 6 May 2014 19:03:19 +0100 From: Lorenzo Pieralisi To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.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 v3 2/6] Documentation: devicetree: psci: define CPU suspend parameter Date: Tue, 6 May 2014 19:04:39 +0100 Message-Id: <1399399483-17112-3-git-send-email-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1399399483-17112-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1399399483-17112-1-git-send-email-lorenzo.pieralisi@arm.com> X-OriginalArrivalTime: 06 May 2014 18:03:19.0611 (UTC) FILETIME=[765F08B0:01CF6955] X-MC-Unique: 114050619031109201 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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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. Signed-off-by: Lorenzo Pieralisi Reviewed-by: Sebastian Capella --- Documentation/devicetree/bindings/arm/psci.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation/devicetree/bindings/arm/psci.txt index 433afe9..797c48f 100644 --- a/Documentation/devicetree/bindings/arm/psci.txt +++ b/Documentation/devicetree/bindings/arm/psci.txt @@ -42,6 +42,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: @@ -53,3 +61,6 @@ Example: cpu_on = <0x95c10002>; migrate = <0x95c10003>; }; + +[1] Kernel documentation - ARM idle states bindings + Documentation/devicetree/bindings/arm/idle-states.txt