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: 30214 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5D67A20446 for ; Thu, 15 May 2014 04:11:47 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wo20sf2733574obc.7 for ; Wed, 14 May 2014 21:11:46 -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=fkLIreftSm/ESvuspMb/ofViEIYTjm0A6+2aRy/krgI=; b=jpvMh4em2e0LwGtUxoOLODRFpM8LgxPXmg4Ea1rIqeSx0OWMZY7WDGxkaYMMZoB/di ERnWezhy6f8dPTOucOUp9a/llYvxtZ+Dzf117UraKrDHHXbiTsKoeMaO7q6HVG+RqkNn s4kN7G99W0mIdAprD76Dk0pQVwFPCJdWp61keGmI2Uz23w2Qj3GhpR98xqCL1oYEyBAa Tzr1w/Kgesb9wkBxWPhSSfhp5qkMq9a6LyGqr65dpIHp+RcGoLKyO9IgjgYOY8Q1OBs+ x7XjYXC5lY55L2CrZ6IXO03QnoPyTMKotpelWM5pIdyu2U9vgApg6rQTEHYH1V2VdwZ/ NZEA== X-Gm-Message-State: ALoCoQlb2d7pZhb7AADuolfdYeVNSrGWJXAF1vHsQS0MmxBm60pxb33H2Xz5wcXoqqIA5N1W7N1Z X-Received: by 10.182.135.167 with SMTP id pt7mr4004034obb.14.1400127106622; Wed, 14 May 2014 21:11:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.173 with SMTP id 42ls75297qgb.62.gmail; Wed, 14 May 2014 21:11:46 -0700 (PDT) X-Received: by 10.221.62.131 with SMTP id xa3mr6502153vcb.13.1400127106517; Wed, 14 May 2014 21:11:46 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id kp14si699642vcb.110.2014.05.14.21.11.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 May 2014 21:11:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id oy12so604380veb.24 for ; Wed, 14 May 2014 21:11:46 -0700 (PDT) X-Received: by 10.220.69.72 with SMTP id y8mr6439592vci.21.1400127106432; Wed, 14 May 2014 21:11:46 -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.221.72 with SMTP id ib8csp291012vcb; Wed, 14 May 2014 21:11:45 -0700 (PDT) X-Received: by 10.229.192.7 with SMTP id do7mr12125187qcb.1.1400127105466; Wed, 14 May 2014 21:11:45 -0700 (PDT) Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) by mx.google.com with ESMTPS id j6si1935021qan.124.2014.05.14.21.11.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 May 2014 21:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.216.170 as permitted sender) client-ip=209.85.216.170; Received: by mail-qc0-f170.google.com with SMTP id i8so881991qcq.15 for ; Wed, 14 May 2014 21:11:45 -0700 (PDT) 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 Cc: linaro-acpi@lists.linaro.org, linux-arm-kernel@lists.infradead.org, rob.herring@linaro.org, christoffer.dall@linaro.org, Marc.Zyngier@arm.com, mark.rutland@arm.com, anup.patel@linaro.org, patches@linaro.org, Ashwin Chaugule 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ashwin.chaugule@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) 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 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 >; + + ... + };