From patchwork Thu Mar 27 21:23:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 27237 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E38F202FA for ; Thu, 27 Mar 2014 21:24:13 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf14696308iec.6 for ; Thu, 27 Mar 2014 14:24:12 -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=bKTDVIOKA7EHyI7/+mB91ZYsoRw7maAKhQ3XToTrN6AHl1ffP5+uz7t0b2CRBqEnNJ b2IdjosyXVFDYdfJrCA0+03YVonZCBJq79C1gqU9BWgBfSPLDQOY1LZ4AbWicZm+GXj9 UF2g29zi5BmkHrygGzs2a1Xl/Qk5K2PMHMM3xx40sq3elTwJbeRq8tRGyp+etSpEMPgU aEyKzQyQHG2BWcUG2BAZKvHt7D8lozRY11Yn6I9PuCsWS/yK5aY/Vrvj2Ar5kAMrkjI4 N/1cIkGMKq6oW5YaBUT/pHG34b6Sqvfa3M8vKO3xURuWO61izwAtSpY5Js6oRFBBa4Ky 0IPQ== X-Gm-Message-State: ALoCoQlMwDdII3HmIv5898vYb2ryg08S12fMNO+hjGeEQ9cJ8RtCuaDsszJWb6xgGgVR6oe59PA4 X-Received: by 10.182.251.230 with SMTP id zn6mr1679216obc.14.1395955452778; Thu, 27 Mar 2014 14:24:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.40 with SMTP id y37ls1291672qgy.10.gmail; Thu, 27 Mar 2014 14:24:12 -0700 (PDT) X-Received: by 10.220.12.66 with SMTP id w2mr3352124vcw.15.1395955452641; Thu, 27 Mar 2014 14:24:12 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id av10si866512ved.90.2014.03.27.14.24.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 14:24:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 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.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so4742887veb.5 for ; Thu, 27 Mar 2014 14:24:12 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr2590376vcb.32.1395955452571; Thu, 27 Mar 2014 14:24:12 -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.78.9 with SMTP id i9csp60306vck; Thu, 27 Mar 2014 14:24:12 -0700 (PDT) X-Received: by 10.140.32.162 with SMTP id h31mr4780112qgh.49.1395955451890; Thu, 27 Mar 2014 14:24:11 -0700 (PDT) Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) by mx.google.com with ESMTPS id v9si1694180qap.64.2014.03.27.14.24.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 14:24:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.41 is neither permitted nor denied by best guess record for domain of ashwin.chaugule@linaro.org) client-ip=209.85.192.41; Received: by mail-qg0-f41.google.com with SMTP id i50so3521204qgf.14 for ; Thu, 27 Mar 2014 14:24:11 -0700 (PDT) X-Received: by 10.140.98.116 with SMTP id n107mr1156659qge.32.1395955451716; Thu, 27 Mar 2014 14:24:11 -0700 (PDT) Received: from localhost.localdomain (cpe-098-027-049-158.nc.res.rr.com. [98.27.49.158]) by mx.google.com with ESMTPSA id v3sm6044119qaj.1.2014.03.27.14.24.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 14:24:11 -0700 (PDT) From: Ashwin Chaugule To: linaro-acpi@lists.linaro.org Cc: patches@linaro.org, mark.rutland@arm.com, rob.herring@linaro.org, christoffer.dall@linaro.org, marc.zyngier@arm.com, anup.patel@linaro.org, linux-arm-kernel@lists.infradead.org, Ashwin Chaugule Subject: [PATCH v3 2/3] Documentation: devicetree: Add new binding for PSCIv0.2 Date: Thu, 27 Mar 2014 17:23:49 -0400 Message-Id: <1395955430-26050-3-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395955430-26050-1-git-send-email-ashwin.chaugule@linaro.org> References: <1395955430-26050-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.174 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 >; + + ... + };