This is a somewhat generic binding for an interrupt controller/forwarder
implemented in firmware and communicated with using a mailbox.

Signed-off-by: Samuel Holland <sam...@sholland.org>
---
 .../interrupt-controller/mbox-intc.txt        | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 
Documentation/devicetree/bindings/interrupt-controller/mbox-intc.txt

diff --git 
a/Documentation/devicetree/bindings/interrupt-controller/mbox-intc.txt 
b/Documentation/devicetree/bindings/interrupt-controller/mbox-intc.txt
new file mode 100644
index 000000000000..a0eb7904ca83
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/mbox-intc.txt
@@ -0,0 +1,33 @@
+Mailbox-backed Interrupt Controller
+===================================
+
+This binding represents an interrupt controller implemented in firmware,
+that uses a mailbox channel to signal and acknowledge interrupts.
+
+Device Node:
+============
+
+Required properties:
+--------------------
+- compatible:          Must be one of the following strings:
+                       - allwinner,sunxi-msgbox-intc
+- interrupt-controller:        Signifies that this node is an interrupt 
controller.
+- #interrupt-cells:    Must be 1.
+- mboxes:              phandle for the mailbox controller and channel
+                       specifier. If the mailbox controller has unidirectional
+                       channels, two entries are required (see below).
+- mbox-names:          Only required for unidirectional mailbox channels. In
+                       that case, it must contain the strings "tx" and "rx"
+                       (where "tx" and "rx" are from Linux's perspective, not
+                       the direction the interrupts are traveling).
+
+Example:
+--------
+
+       msgbox_intc: interrupt-controller {
+               compatible = "allwinner,sunxi-msgbox-intc";
+               interrupt-controller;
+               #interrupt-cells = <1>;
+               mboxes = <&msgbox 6>, <&msgbox 7>;
+               mbox-names = "tx", "rx";
+       };
-- 
2.19.2

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to