From patchwork Wed Jun 25 14:10:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 32482 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2235720C88 for ; Wed, 25 Jun 2014 14:10:41 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id id10sf3605225vcb.3 for ; Wed, 25 Jun 2014 07:10:40 -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=EZVSHREZQgn+UOLiHk3LZsuNE/2BL+ym3X3Z2HZOVh0=; b=bCULuY/n3QqXWOziLCIi7GUXkz2A0WGgJ12X/dRX14zj+4LmjGaFVSQtD5FHGumD+t hNSuisdoFuKLY3dYL2EqaLV4gqsBqRBmepWB7Of0jj100dTQQRNTLHkC12gyx9VR+uE3 Q+sOr8xoHBStw4s4Cx/QAjgGiu3FGsH5UVJX0iCR38ilTbG8aBeZ0Q1ims+E/cx820/g zPXcw4n3uQkzCNTSK20D2flWpWxS5ONAvosf4f3tmbZaENAj5LWnan095cIq71R5Oepc OmMhuS4fd4G67oczyKaKXHTQmQneBrbHSIN/xCFJ6lTltQPn15ApBFIVtKOAp79yCDQ4 ETIA== X-Gm-Message-State: ALoCoQmIpmwEBPDcufoNOQr6xFCN6Lig08SHNSFoH6L1K0nro98lq14aiYY5SNF0WiLY/zFTHKEd X-Received: by 10.224.171.130 with SMTP id h2mr4355829qaz.7.1403705440908; Wed, 25 Jun 2014 07:10:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.112 with SMTP id n103ls2652121qga.86.gmail; Wed, 25 Jun 2014 07:10:40 -0700 (PDT) X-Received: by 10.220.44.141 with SMTP id a13mr669626vcf.71.1403705440714; Wed, 25 Jun 2014 07:10:40 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id kz4si2317816vdb.74.2014.06.25.07.10.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Jun 2014 07:10:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 as permitted sender) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id i13so2017862veh.22 for ; Wed, 25 Jun 2014 07:10:40 -0700 (PDT) X-Received: by 10.221.7.71 with SMTP id on7mr7210314vcb.18.1403705439130; Wed, 25 Jun 2014 07:10:39 -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.37.5 with SMTP id tc5csp292788vcb; Wed, 25 Jun 2014 07:10:38 -0700 (PDT) X-Received: by 10.68.139.36 with SMTP id qv4mr12107167pbb.82.1403705438112; Wed, 25 Jun 2014 07:10:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id co3si5319950pad.238.2014.06.25.07.10.37; Wed, 25 Jun 2014 07:10:37 -0700 (PDT) Received-SPF: none (google.com: linux-pm-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 S1757367AbaFYOKf (ORCPT + 13 others); Wed, 25 Jun 2014 10:10:35 -0400 Received: from service87.mimecast.com ([91.220.42.44]:48515 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757352AbaFYOKc (ORCPT ); Wed, 25 Jun 2014 10:10:32 -0400 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Wed, 25 Jun 2014 15:10:30 +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, 25 Jun 2014 15:10:17 +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 v5 2/8] Documentation: devicetree: psci: define CPU suspend parameter Date: Wed, 25 Jun 2014 15:10:15 +0100 Message-Id: <1403705421-17597-3-git-send-email-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403705421-17597-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1403705421-17597-1-git-send-email-lorenzo.pieralisi@arm.com> X-OriginalArrivalTime: 25 Jun 2014 14:10:17.0374 (UTC) FILETIME=[30F67BE0:01CF907F] X-MC-Unique: 114062515103010401 Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@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.177 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