From: Moritz Fischer <moritz.fischer@ettus.com>
To: sre@kernel.org
Cc: dbaryshkov@gmail.com, dwmw2@infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org,
Moritz Fischer <moritz.fischer@ettus.com>
Subject: [PATCHv3 2/2] dt: power: Add docs for generic SYSCON poweroff driver.
Date: Wed, 11 Mar 2015 17:37:19 -0700 [thread overview]
Message-ID: <1426120639-4248-3-git-send-email-moritz.fischer@ettus.com> (raw)
In-Reply-To: <1426120639-4248-1-git-send-email-moritz.fischer@ettus.com>
Add documentation for generic SYSCON poweroff driver.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
---
.../bindings/power/reset/syscon-poweroff.txt | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/reset/syscon-poweroff.txt b/Documentation/devicetree/bindings/power/reset/syscon-poweroff.txt
new file mode 100644
index 0000000..1e2546f
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/reset/syscon-poweroff.txt
@@ -0,0 +1,23 @@
+Generic SYSCON mapped register poweroff driver
+
+This is a generic poweroff driver using syscon to map the poweroff register.
+The poweroff is generally performed with a write to the poweroff register
+defined by the register map pointed by syscon reference plus the offset
+with the mask defined in the poweroff node.
+
+Required properties:
+- compatible: should contain "syscon-poweroff"
+- regmap: this is phandle to the register map node
+- offset: offset in the register map for the poweroff register (in bytes)
+- mask: the poweroff value written to the poweroff register (32 bit access)
+
+Default will be little endian mode, 32 bit access only.
+
+Examples:
+
+ poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <®mapnode>;
+ offset = <0x0>;
+ mask = <0x7a>;
+ };
--
1.9.3
next prev parent reply other threads:[~2015-03-12 0:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 0:37 [PATCHv3 0/2] Add support for generic register mapped poweroff Moritz Fischer
2015-03-12 0:37 ` [PATCHv3 1/2] power: reset: Add generic SYSCON " Moritz Fischer
2015-03-12 0:37 ` Moritz Fischer [this message]
2015-04-06 16:51 ` [PATCHv3 0/2] Add support for generic " Sebastian Reichel
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=1426120639-4248-3-git-send-email-moritz.fischer@ettus.com \
--to=moritz.fischer@ettus.com \
--cc=dbaryshkov@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.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