From patchwork Thu Apr 17 19:15:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 28591 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C92892188F for ; Thu, 17 Apr 2014 19:16:13 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf4223127oag.5 for ; Thu, 17 Apr 2014 12:16:13 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=+GrXZvQNbJVHCKdPISVWBxa2JNuyqzUCcQfOAvfJt74=; b=keZF91aFcAYhWLrmrZg2gK3VfL9+1x85a5/MfxPaxptYk5RfRFer2H+oTIQ3zBJG0F io35TE4y1Co7Z0rb6j4Tumm/lEu/S1YY9HdJWHTEE+I6IN8WP7+jkABXcMHf6RQXBxFk bRwNF4Y+cRznUckI7GujQr1MaFuU54YBVhlJtwrA2y4NKm4HPEL3k61bl3jmq/G+gpgR MwPtTn1Pnot/QLBtom4ht+1cMNpJsSXkp67HTXAcQSKug2lIYnBdCJYhQJZa/y7GxTxp XWVaAJad5ypF841GHLEkAPRXqQvLDltN4sib4d+tISE0coO8OAKPVidADBPJJGn70pf5 Zkvw== X-Gm-Message-State: ALoCoQnfwtNbSx7ANI6W69lxdwyKq5ariV0GuXHmdwEXSYORrgZ3MZeXAzd1+h5KjVtVglzBkMsM X-Received: by 10.182.213.5 with SMTP id no5mr8148955obc.15.1397762173363; Thu, 17 Apr 2014 12:16:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.69 with SMTP id e63ls1321712qgd.29.gmail; Thu, 17 Apr 2014 12:16:13 -0700 (PDT) X-Received: by 10.52.119.197 with SMTP id kw5mr8275611vdb.5.1397762173241; Thu, 17 Apr 2014 12:16:13 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id wd2si4605677veb.113.2014.04.17.12.16.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 12:16:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so1004246veb.23 for ; Thu, 17 Apr 2014 12:16:13 -0700 (PDT) X-Received: by 10.52.130.225 with SMTP id oh1mr8301865vdb.8.1397762173171; Thu, 17 Apr 2014 12:16:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp59334vcb; Thu, 17 Apr 2014 12:16:12 -0700 (PDT) X-Received: by 10.67.1.202 with SMTP id bi10mr17347231pad.68.1397762171453; Thu, 17 Apr 2014 12:16:11 -0700 (PDT) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id g1si1912954pbd.347.2014.04.17.12.16.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 12:16:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of ashwin.chaugule@linaro.org) client-ip=209.85.220.43; Received: by mail-pa0-f43.google.com with SMTP id bj1so685375pad.16 for ; Thu, 17 Apr 2014 12:16:11 -0700 (PDT) X-Received: by 10.68.113.194 with SMTP id ja2mr17638908pbb.30.1397762171078; Thu, 17 Apr 2014 12:16:11 -0700 (PDT) Received: from linaro5.qualcomm.com (rrcs-67-52-130-30.west.biz.rr.com. [67.52.130.30]) by mx.google.com with ESMTPSA id et3sm55157855pbc.52.2014.04.17.12.16.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 12:16:10 -0700 (PDT) From: Ashwin Chaugule To: mark.rutland@arm.com Cc: linaro-acpi@lists.linaro.org, linux-arm-kernel@lists.infradead.org, rob.herring@linaro.org, christoffer.dall@linaro.org, Marc.Zyngier@arm.com, anup.patel@linaro.org, patches@linaro.org, Ashwin Chaugule Subject: [PATCH v6 2/3] Documentation: devicetree: Add new binding for PSCIv0.2 Date: Thu, 17 Apr 2014 15:15:45 -0400 Message-Id: <1397762146-8337-3-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1397762146-8337-1-git-send-email-ashwin.chaugule@linaro.org> References: <1397762146-8337-1-git-send-email-ashwin.chaugule@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ashwin.chaugule@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.178 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The PSCI v0.2+ spec defines standard values for PSCI function IDs. Add a new binding entry so that pre v0.2 implementations can use DT entries for function IDs and v0.2+ implementations use standard entries as defined by the PSCIv0.2 specification. Signed-off-by: Ashwin Chaugule Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/psci.txt | 35 +++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation/devicetree/bindings/arm/psci.txt index 433afe9..d01a90b 100644 --- a/Documentation/devicetree/bindings/arm/psci.txt +++ b/Documentation/devicetree/bindings/arm/psci.txt @@ -21,7 +21,15 @@ to #0. Main node required properties: - - compatible : Must be "arm,psci" + - compatible : should contain at least one of: + + * "arm,psci" : for implementations complying to PSCI versions prior to + 0.2. For these cases function IDs must be provided. + + * "arm,psci-0.2" : for implementations complying to PSCI 0.2. Function + IDs are not required and should be ignored by an OS with PSCI 0.2 + support, but are permitted to be present for compatibility with + existing software when "arm,psci" is later in the compatible list. - method : The method of calling the PSCI firmware. Permitted values are: @@ -45,6 +53,8 @@ Main node optional properties: Example: +Case 1: PSCI v0.1 only. + psci { compatible = "arm,psci"; method = "smc"; @@ -53,3 +63,26 @@ Example: cpu_on = <0x95c10002>; migrate = <0x95c10003>; }; + + +Case 2: PSCI v0.2 only + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + +Case 3: PSCI v0.2 and PSCI v0.1. + + As described above, for compatibility with existing kernels, the + hypervisor will likely want to provide IDs, e.g. + + psci { + compatible = "arm,psci-0.2", "arm,psci"; + method = "hvc"; + + cpu_on = < arbitrary value >; + cpu_off = < arbitrary value >; + + ... + };