From patchwork Thu Mar 27 15:38:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 27207 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 07E95202FA for ; Thu, 27 Mar 2014 15:38:53 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf13215121obc.0 for ; Thu, 27 Mar 2014 08:38:53 -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=2mQ7291LxPNPlqcXn0872m9FuKvDah1lD6Ed6lLK36g=; b=gQYncY2IS3iA6bkhm1fX3qEDrDIcpkkY4gfDU51StLusOxFR+fcTb114cXfn+5IQK1 4JkGh1RHVQsuXUWf8tLdyIn3EtLztBA6josaUznVIM5Rs6LPdZbKMCUUDZGVRWON9w48 vRzawK/OZrc1i32oKR4r7LNiLxJdwW1a9eVyZLVy2BrFb9hIRVPAVLz51rMiivojTe5R DI8avad0nvPfwOzue1+6Qp608m7v/2OG3qRI+FSLv6YjAvEWub8ETHrGselpwqtNnq4j QEiiBJmZebU5JqwtX2xjKdIYtHiyf3+v7DU6EsVgwA46PvML0urUXoPngxdEHNv/werP ReOQ== X-Gm-Message-State: ALoCoQl/T/7XYH+BVub0DrsqbEbtwTQ7NFQ6yzy29hdw/fnHo6LbsynUhp33RYyHS6+HlM4IZkmG X-Received: by 10.182.79.194 with SMTP id l2mr938987obx.43.1395934733579; Thu, 27 Mar 2014 08:38:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.181 with SMTP id h50ls1094423qgh.15.gmail; Thu, 27 Mar 2014 08:38:53 -0700 (PDT) X-Received: by 10.58.134.101 with SMTP id pj5mr419740veb.38.1395934733365; Thu, 27 Mar 2014 08:38:53 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id mp4si638728vcb.4.2014.03.27.08.38.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 08:38:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if17so4336264vcb.8 for ; Thu, 27 Mar 2014 08:38:53 -0700 (PDT) X-Received: by 10.52.18.70 with SMTP id u6mr1712109vdd.11.1395934733299; Thu, 27 Mar 2014 08:38:53 -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 i9csp37923vck; Thu, 27 Mar 2014 08:38:52 -0700 (PDT) X-Received: by 10.224.30.70 with SMTP id t6mr3033797qac.30.1395934732842; Thu, 27 Mar 2014 08:38:52 -0700 (PDT) Received: from mail-qa0-f44.google.com (mail-qa0-f44.google.com [209.85.216.44]) by mx.google.com with ESMTPS id m6si1180269qay.195.2014.03.27.08.38.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 08:38:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.216.44 is neither permitted nor denied by best guess record for domain of ashwin.chaugule@linaro.org) client-ip=209.85.216.44; Received: by mail-qa0-f44.google.com with SMTP id f11so3984382qae.3 for ; Thu, 27 Mar 2014 08:38:52 -0700 (PDT) X-Received: by 10.229.230.68 with SMTP id jl4mr366940qcb.2.1395934732408; Thu, 27 Mar 2014 08:38:52 -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 g7sm1499522qaf.14.2014.03.27.08.38.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 08:38:51 -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 v2 2/3] Documentation: devicetree: Add new binding for PSCIv0.2 Date: Thu, 27 Mar 2014 11:38:34 -0400 Message-Id: <1395934715-31348-2-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395934715-31348-1-git-send-email-ashwin.chaugule@linaro.org> References: <1395934715-31348-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.220.177 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 >; + + ... + };