devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>,
	xen-devel-GuqFBffKawuEi8DpZVb4nw@public.gmane.org
Subject: [PATCH v3 3/6] ARM: psci: add devicetree binding for describing PSCI firmware
Date: Tue, 18 Dec 2012 17:53:13 +0000	[thread overview]
Message-ID: <1355853196-23676-4-git-send-email-will.deacon@arm.com> (raw)
In-Reply-To: <1355853196-23676-1-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>

This patch adds a new devicetree binding for describing PSCI firmware
to Linux.

Signed-off-by: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>
---
 Documentation/devicetree/bindings/arm/psci.txt | 55 ++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/psci.txt

diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation/devicetree/bindings/arm/psci.txt
new file mode 100644
index 0000000..433afe9
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/psci.txt
@@ -0,0 +1,55 @@
+* Power State Coordination Interface (PSCI)
+
+Firmware implementing the PSCI functions described in ARM document number
+ARM DEN 0022A ("Power State Coordination Interface System Software on ARM
+processors") can be used by Linux to initiate various CPU-centric power
+operations.
+
+Issue A of the specification describes functions for CPU suspend, hotplug
+and migration of secure software.
+
+Functions are invoked by trapping to the privilege level of the PSCI
+firmware (specified as part of the binding below) and passing arguments
+in a manner similar to that specified by AAPCS:
+
+	 r0		=> 32-bit Function ID / return value
+	{r1 - r3}	=> Parameters
+
+Note that the immediate field of the trapping instruction must be set
+to #0.
+
+
+Main node required properties:
+
+ - compatible    : Must be "arm,psci"
+
+ - method        : The method of calling the PSCI firmware. Permitted
+                   values are:
+
+                   "smc" : SMC #0, with the register assignments specified
+		           in this binding.
+
+                   "hvc" : HVC #0, with the register assignments specified
+		           in this binding.
+
+Main node optional properties:
+
+ - cpu_suspend   : Function ID for CPU_SUSPEND operation
+
+ - cpu_off       : Function ID for CPU_OFF operation
+
+ - cpu_on        : Function ID for CPU_ON operation
+
+ - migrate       : Function ID for MIGRATE operation
+
+
+Example:
+
+	psci {
+		compatible	= "arm,psci";
+		method		= "smc";
+		cpu_suspend	= <0x95c10000>;
+		cpu_off		= <0x95c10001>;
+		cpu_on		= <0x95c10002>;
+		migrate		= <0x95c10003>;
+	};
-- 
1.8.0

  parent reply	other threads:[~2012-12-18 17:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 17:53 [PATCH v3 0/6] Add support for a fake, para-virtualised machine Will Deacon
2012-12-18 17:53 ` [PATCH v3 6/6] ARM: mach-virt: add SMP support using PSCI Will Deacon
     [not found]   ` <1355853196-23676-7-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2012-12-19  4:09     ` Nicolas Pitre
     [not found] ` <1355853196-23676-1-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2012-12-18 17:53   ` [PATCH v3 1/6] ARM: opcodes: add missing include of linux/linkage.h Will Deacon
2012-12-18 17:53   ` [PATCH v3 2/6] ARM: opcodes: add opcodes definitions for ARM security extensions Will Deacon
2012-12-18 17:53   ` Will Deacon [this message]
2012-12-19  4:11     ` [PATCH v3 3/6] ARM: psci: add devicetree binding for describing PSCI firmware Nicolas Pitre
2012-12-18 17:53   ` [PATCH v3 4/6] ARM: psci: add support for PSCI invocations from the kernel Will Deacon
     [not found]     ` <1355853196-23676-5-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2012-12-19  4:16       ` Nicolas Pitre
2012-12-18 17:53   ` [PATCH v3 5/6] ARM: Dummy Virtual Machine platform support Will Deacon
     [not found]     ` <1355853196-23676-6-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2012-12-19  4:17       ` Nicolas Pitre
2012-12-18 17:59   ` [PATCH v3 0/6] Add support for a fake, para-virtualised machine Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355853196-23676-4-git-send-email-will.deacon@arm.com \
    --to=will.deacon-5wv7dgnigg8@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=xen-devel-GuqFBffKawuEi8DpZVb4nw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).