From patchwork Mon Mar 31 19:40:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 3917611 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 94E1FBF540 for ; Mon, 31 Mar 2014 19:47:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB514203AB for ; Mon, 31 Mar 2014 19:47:58 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 C3C2D20386 for ; Mon, 31 Mar 2014 19:47:57 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WUiBT-0000YM-LM; Mon, 31 Mar 2014 19:47:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WUiBR-0005bf-6A; Mon, 31 Mar 2014 19:47:49 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WUiBO-0005aP-K3 for linux-arm-kernel@lists.infradead.org; Mon, 31 Mar 2014 19:47:47 +0000 Received: by mail-pa0-f49.google.com with SMTP id lj1so8662975pab.36 for ; Mon, 31 Mar 2014 12:47:25 -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=+GrXZvQNbJVHCKdPISVWBxa2JNuyqzUCcQfOAvfJt74=; b=Hr6pnOxC8r1HlqrRFse/e5g5ul1cuQmdtrNbRHzMKk5ii9NcuyX0Pe27BZM5K6pesL JNPr/w8f12XnBX+uVQQYmvd6g5s95QjH4UslGW0lgvM3od26AMa6llnMrfrtEiuMI4U2 sVHyoZc+zv5WuH4vhOwibRgUQtjuRCRwTDImu8SkqkhQhCASqaOYJ5lcKCGK5YtR0pFa ypX37chVCuc835ja5jMXY0mSLxywws6ICWPLHyw/WgeRdjRDrsu5ImL/3d75ixiGMQv/ 5fUjvQOpo9FAQC4ngUg8w3vRwN/N47d1UuUS1G6o4dXpVb55HT3ENySQtM/5m+Se15L1 0WQg== X-Gm-Message-State: ALoCoQlD+E0E5udlMrxx4oCrM5FVhOvK7gMGdJoMWUWy98e8NCuVZw8xb5SAV7s6B6H5L5TRnSFB X-Received: by 10.66.26.81 with SMTP id j17mr26919313pag.87.1396294826630; Mon, 31 Mar 2014 12:40:26 -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 np9sm45069800pbc.31.2014.03.31.12.40.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 12:40:26 -0700 (PDT) From: Ashwin Chaugule To: linaro-acpi@lists.linaro.org Subject: [PATCH v5 2/3] Documentation: devicetree: Add new binding for PSCIv0.2 Date: Mon, 31 Mar 2014 15:40:14 -0400 Message-Id: <1396294815-12019-3-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1396294815-12019-1-git-send-email-ashwin.chaugule@linaro.org> References: <1396294815-12019-1-git-send-email-ashwin.chaugule@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140331_154746_768052_987E9E1E X-CRM114-Status: UNSURE ( 8.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: mark.rutland@arm.com, rob.herring@linaro.org, anup.patel@linaro.org, patches@linaro.org, marc.zyngier@arm.com, 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=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 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 >; + + ... + };