From patchwork Mon Mar 31 15:02:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 27420 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 67263202E0 for ; Mon, 31 Mar 2014 15:04:04 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id jt11sf21724476pbb.3 for ; Mon, 31 Mar 2014 08:04:03 -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=kE95xZN1sfO6tzaC+sU5qrR5VSUIO/VLGZs3XzCYPNr584pbX3Zz98QfACDir/ql3I n9+TNmn2OyeBLwaFCgnJoS0npZfA/b9hkCZhx3r+bfXv7HJ9mTWaffeSFJbUjV3KVKvg FkA1qMvY+rcU3REKsE8rL31oTcd+YC9wf+YLtghyfUfJc3nummMWimHsV8WE12zmBgbR Sg74zgzXu+CKCoBXt5WlxE+oimmxxm/kwQYYdC11m9ZD9PwRNX2PR/xRsN8CciQ+Kt6I g7vRaZAhYAR0JXsQHWv3TeoSCW9VyhfvzR+IEd7OtTJt/WZHq6HCrOrnwAKmCIyBzJ7x JTFg== X-Gm-Message-State: ALoCoQm7f74yd1xeUOrzrtwOmcA2AS2rDo68CRX4iioB14W2a69Jc2dyD/Q3n5u1QRy1+d9tiQCp X-Received: by 10.66.141.135 with SMTP id ro7mr10084487pab.28.1396278243407; Mon, 31 Mar 2014 08:04:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.10 with SMTP id i10ls2519118qgf.62.gmail; Mon, 31 Mar 2014 08:04:03 -0700 (PDT) X-Received: by 10.220.247.68 with SMTP id mb4mr137798vcb.37.1396278243266; Mon, 31 Mar 2014 08:04:03 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id f9si2909194vck.145.2014.03.31.08.04.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 08:04:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.182 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.182; Received: by mail-ve0-f182.google.com with SMTP id jw12so8474411veb.13 for ; Mon, 31 Mar 2014 08:04:03 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr416066vcb.32.1396278243176; Mon, 31 Mar 2014 08:04:03 -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.12.8 with SMTP id v8csp149625vcv; Mon, 31 Mar 2014 08:04:02 -0700 (PDT) X-Received: by 10.229.134.198 with SMTP id k6mr9529816qct.13.1396278230602; Mon, 31 Mar 2014 08:03:50 -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 110si6327845qgi.104.2014.03.31.08.03.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 08:03:50 -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 dc16so3378506qab.31 for ; Mon, 31 Mar 2014 08:03:50 -0700 (PDT) X-Received: by 10.224.37.10 with SMTP id v10mr2182570qad.104.1396278230455; Mon, 31 Mar 2014 08:03:50 -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 p2sm28847450qah.38.2014.03.31.08.03.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 08:03:49 -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 v4 2/3] Documentation: devicetree: Add new binding for PSCIv0.2 Date: Mon, 31 Mar 2014 11:02:58 -0400 Message-Id: <1396278179-28181-3-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1396278179-28181-1-git-send-email-ashwin.chaugule@linaro.org> References: <1396278179-28181-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.182 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 >; + + ... + };