From patchwork Thu May 15 04:11:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 4179111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A75EBC0ACC for ; Thu, 15 May 2014 04:15:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC06720377 for ; Thu, 15 May 2014 04:15:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF97720364 for ; Thu, 15 May 2014 04:15:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wkn1m-00065M-RL; Thu, 15 May 2014 04:12:18 +0000 Received: from mail-qc0-f172.google.com ([209.85.216.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wkn1c-00062b-2k for linux-arm-kernel@lists.infradead.org; Thu, 15 May 2014 04:12:09 +0000 Received: by mail-qc0-f172.google.com with SMTP id l6so869546qcy.17 for ; Wed, 14 May 2014 21:11:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fkLIreftSm/ESvuspMb/ofViEIYTjm0A6+2aRy/krgI=; b=eLab+F6N+SdN7+QAuIyzpYnW+yt5GbXWkpLZdcSlZgk3yTJxoudRBtA73wp/YGu4hr KlEFCkKuI5mnna2F0y0gz5q8mYpQ5DvAbZp89l+ZO3yr+3x4LzMco62U0M0/6Ha54roo Xw8rUipuz1PgV7bAspEYU7YtCwwrUmRIFMvuiyz0SNZENcmtg12RYkNA4elLJcRQx43O 15+UghkZLGy32/eLiuxp1087AtVyn046Ae7jafIR3afXo2P5N8JNuPGiTbef0DiG4TBE 7/HPK3Jk8zu3qPj3KZcXj3Xq+Iew1RGZsJ73wVhMxU4LnWXgSEb+7N32Xv4Z//0OoFHM HoIQ== X-Gm-Message-State: ALoCoQlwYQsZHWqVydaGxDaKQk9iV+j9cNhFeI0820H7HItGqtOR7EQNjAmxFE059Nwy0zt/dBFk X-Received: by 10.224.64.132 with SMTP id e4mr9474518qai.16.1400127105334; Wed, 14 May 2014 21:11:45 -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 k9sm6107147qaj.25.2014.05.14.21.11.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 May 2014 21:11:44 -0700 (PDT) From: Ashwin Chaugule To: Catalin.Marinas@arm.com Subject: [PATCH v10 2/3] Documentation: devicetree: Add new binding for PSCIv0.2 Date: Thu, 15 May 2014 00:11:29 -0400 Message-Id: <1400127090-1320-3-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400127090-1320-1-git-send-email-ashwin.chaugule@linaro.org> References: <1400127090-1320-1-git-send-email-ashwin.chaugule@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140514_211208_697069_2F597147 X-CRM114-Status: GOOD ( 12.95 ) X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, rob.herring@linaro.org, anup.patel@linaro.org, linaro-acpi@lists.linaro.org, Marc.Zyngier@arm.com, patches@linaro.org, Ashwin Chaugule , linux-arm-kernel@lists.infradead.org, christoffer.dall@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Mark Rutland Acked-by: Rob Herring Acked-by: Catalin Marinas --- Documentation/devicetree/bindings/arm/psci.txt | 37 +++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation/devicetree/bindings/arm/psci.txt index 433afe9..b4a58f3 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,28 @@ 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. + + A DTB may provide IDs for use by kernels without PSCI 0.2 support, + enabling firmware and hypervisors to support existing and new kernels. + These IDs will be ignored by kernels with PSCI 0.2 support, which will + use the standard PSCI 0.2 IDs exclusively. + + psci { + compatible = "arm,psci-0.2", "arm,psci"; + method = "hvc"; + + cpu_on = < arbitrary value >; + cpu_off = < arbitrary value >; + + ... + };