linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: leo.yan@linaro.org (Leo Yan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 1/3] dt-bindings: mailbox: Document Hi6220 mailbox driver
Date: Wed, 19 Aug 2015 17:37:33 +0800	[thread overview]
Message-ID: <1439977055-1747-2-git-send-email-leo.yan@linaro.org> (raw)
In-Reply-To: <1439977055-1747-1-git-send-email-leo.yan@linaro.org>

Document the new compatible for Hisilicon Hi6220 mailbox driver.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
---
 .../bindings/mailbox/hisilicon,hi6220-mailbox.txt  | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt

diff --git a/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt b/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt
new file mode 100644
index 0000000..3dfb0b0
--- /dev/null
+++ b/Documentation/devicetree/bindings/mailbox/hisilicon,hi6220-mailbox.txt
@@ -0,0 +1,57 @@
+Hisilicon Hi6220 Mailbox Driver
+===============================
+
+Hisilicon Hi6220 mailbox supports up to 32 channels. Each channel
+is unidirectional with a maximum message size of 8 words. I/O is
+performed using register access (there is no DMA) and the cell
+raises an interrupt when messages are received.
+
+Mailbox Device Node:
+====================
+
+Required properties:
+--------------------
+- compatible:		Shall be "hisilicon,hi6220-mbox"
+- reg:			Contains the mailbox register address range (base
+			address and length); the first item is for IPC
+			registers, the second item is shared buffer for
+			slots.
+- #mbox-cells		Common mailbox binding property to identify the number
+			of cells required for the mailbox specifier. Should be 1.
+- interrupts:		Contains the interrupt information for the mailbox
+			device. The format is dependent on which interrupt
+			controller the SoCs use.
+
+Example:
+--------
+
+	mailbox: mailbox at F7510000 {
+		#mbox-cells = <1>;
+		compatible = "hisilicon,hi6220-mbox";
+		reg = <0x0 0xF7510000 0x0 0x1000>, /* IPC_S */
+		      <0x0 0x06DFF800 0x0 0x0800>; /* Mailbox */
+		interrupt-parent = <&gic>;
+		interrupts = <0 94 4>;
+	};
+
+
+Mailbox client
+===============
+
+"mboxes" and the optional "mbox-names" (please see
+Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value
+of the mboxes property should contain a phandle to the mailbox controller
+device node and second argument is the channel index. It must be 0 (hardware
+support only one channel). The equivalent "mbox-names" property value can be
+used to give a name to the communication channel to be used by the client user.
+
+Example:
+--------
+
+	stub_clock: stub_clock {
+		compatible = "hisilicon,hi6220-stub-clk";
+		hisilicon,hi6220-clk-sram = <&sram>;
+		#clock-cells = <1>;
+		mbox-names = "mbox-tx";
+		mboxes = <&mailbox 1>;
+	};
-- 
1.9.1

  reply	other threads:[~2015-08-19  9:37 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19  9:37 [PATCH v1 0/3] mailbox: hisilicon: add Hi6220 mailbox driver Leo Yan
2015-08-19  9:37 ` Leo Yan [this message]
2015-08-25 11:17   ` [PATCH v1 1/3] dt-bindings: mailbox: Document " Sudeep Holla
2015-08-25 13:01     ` Leo Yan
2015-08-19  9:37 ` [PATCH v1 2/3] mailbox: Hi6220: add " Leo Yan
2015-08-19  9:37 ` [PATCH v1 3/3] arm64: dts: add Hi6220 mailbox node Leo Yan
2015-08-21 18:40   ` Mark Rutland
2015-08-22 13:30     ` Leo Yan
2015-08-24  3:27       ` Leo Yan
2015-08-24  9:18     ` Leo Yan
2015-08-24  9:51       ` Mark Rutland
2015-08-24 10:19         ` Haojian Zhuang
2015-08-24 11:49           ` Leif Lindholm
2015-08-25  8:13             ` Haojian Zhuang
2015-08-25  9:46               ` Leif Lindholm
2015-08-25 10:15                 ` Haojian Zhuang
2015-08-25 10:40                   ` Leif Lindholm
2015-08-25 10:42                   ` Mark Rutland
2015-08-25 13:43                     ` Haojian Zhuang
2015-08-25 14:24                       ` Leif Lindholm
2015-08-25 14:51                         ` Ard Biesheuvel
2015-08-25 15:37                           ` Leif Lindholm
2015-08-25 15:45                             ` Ard Biesheuvel
2015-08-26  2:41                             ` Haojian Zhuang
2015-08-25 16:00                       ` Leo Yan
2015-08-26  1:25                         ` Haojian Zhuang
2015-08-26  6:59                           ` Leo Yan
2015-08-27 16:31                             ` Mark Rutland
2015-08-28  6:37                               ` Leo Yan
2015-08-27 15:54                           ` Daniel Thompson
2015-08-27 16:46                           ` Mark Rutland
2015-08-24 12:48           ` Mark Rutland
2015-08-25  8:04             ` Haojian Zhuang
2015-08-25 11:09               ` Mark Rutland
2015-08-25 11:36   ` Sudeep Holla
2015-08-25 14:04     ` Leo Yan
2015-08-25 14:13       ` Sudeep Holla

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=1439977055-1747-2-git-send-email-leo.yan@linaro.org \
    --to=leo.yan@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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).