From patchwork Wed May 7 14:27:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 29769 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 53B3B20534 for ; Wed, 7 May 2014 14:27:58 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id rp18sf5226740iec.5 for ; Wed, 07 May 2014 07:27:57 -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=IQkxabPPV+Q8QxEZt/RheqnwJUXEPvwX3jL/B/PRlQolCbeDF7sK01GB66Zk0xdUl7 om+I6ESQu5QrkQjyMRkeUgVaclbR3eUBwGGw+wKilDo0D2QBBOJZS36pZOMkXDQNGKAb 1nWGjj0oPj4Uzl5bBC/+/eSpo0YOgijMfxggVQJGhqru5wYnx4pIt+6QuzkioHmYFaYY sBP4qcabrx3xTT1r5D0L2FaaR9YiJlq4CGqTFGpA3EEEaSH5hPCiNUSyKTv6V137U0kI QoOsKuMNvgNSrhMGrnrZ5UxlYTr3EmKIrvatWdsU+OiNtJEESOZ7Q4UqK3NIK4DL1hh5 N7zA== X-Gm-Message-State: ALoCoQmOvgEt6z/+HkVjSbWXzVjDmRtwENaj2z2Op/zIH7oMdIIkzcmxwPVu2//mr2F3WTJh5VHj X-Received: by 10.182.106.229 with SMTP id gx5mr4612152obb.31.1399472877721; Wed, 07 May 2014 07:27:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.225 with SMTP id f88ls3383059qgf.65.gmail; Wed, 07 May 2014 07:27:57 -0700 (PDT) X-Received: by 10.220.105.130 with SMTP id t2mr38827952vco.18.1399472877543; Wed, 07 May 2014 07:27:57 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id bw7si2932739vcb.159.2014.05.07.07.27.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 07:27:57 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id ld13so819821vcb.12 for ; Wed, 07 May 2014 07:27:57 -0700 (PDT) X-Received: by 10.220.12.66 with SMTP id w2mr38657194vcw.15.1399472877401; Wed, 07 May 2014 07:27:57 -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 ib8csp313958vcb; Wed, 7 May 2014 07:27:56 -0700 (PDT) X-Received: by 10.224.20.72 with SMTP id e8mr65364056qab.86.1399472875812; Wed, 07 May 2014 07:27:55 -0700 (PDT) Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by mx.google.com with ESMTPS id 2si380125qah.90.2014.05.07.07.27.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 07:27:55 -0700 (PDT) Received-SPF: none (google.com: ashwin.chaugule@linaro.org does not designate permitted sender hosts) client-ip=209.85.216.51; Received: by mail-qa0-f51.google.com with SMTP id w8so1040614qac.24 for ; Wed, 07 May 2014 07:27:55 -0700 (PDT) X-Received: by 10.140.85.102 with SMTP id m93mr60253532qgd.26.1399472875640; Wed, 07 May 2014 07:27:55 -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 x5sm29455150qaj.9.2014.05.07.07.27.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 07:27:54 -0700 (PDT) From: Ashwin Chaugule To: mark.rutland@arm.com Cc: Catalin.Marinas@arm.com, 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 v9 2/3] Documentation: devicetree: Add new binding for PSCIv0.2 Date: Wed, 7 May 2014 10:27:26 -0400 Message-Id: <1399472847-14377-3-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1399472847-14377-1-git-send-email-ashwin.chaugule@linaro.org> References: <1399472847-14377-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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 Reviewed-by: Mark Rutland --- 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 >; + + ... + };