1f62092f6SLey Foon TanAltera Mailbox Driver
2f62092f6SLey Foon Tan=====================
3f62092f6SLey Foon Tan
4f62092f6SLey Foon TanRequired properties:
5f62092f6SLey Foon Tan- compatible :	"altr,mailbox-1.0".
6f62092f6SLey Foon Tan- reg : 	physical base address of the mailbox and length of
7f62092f6SLey Foon Tan		memory mapped region.
8f62092f6SLey Foon Tan- #mbox-cells:	Common mailbox binding property to identify the number
9f62092f6SLey Foon Tan		of cells required for the mailbox specifier. Should be 1.
10f62092f6SLey Foon Tan
11f62092f6SLey Foon TanOptional properties:
12f62092f6SLey Foon Tan- interrupts :		interrupt number. The interrupt specifier format
13f62092f6SLey Foon Tan			depends on the interrupt controller parent.
14f62092f6SLey Foon Tan
15f62092f6SLey Foon TanExample:
164c9847b7SMathieu Malaterre	mbox_tx: mailbox@100 {
17f62092f6SLey Foon Tan		compatible = "altr,mailbox-1.0";
18f62092f6SLey Foon Tan		reg = <0x100 0x8>;
19f62092f6SLey Foon Tan		interrupt-parent = < &gic_0 >;
20f62092f6SLey Foon Tan		interrupts = <5>;
21f62092f6SLey Foon Tan		#mbox-cells = <1>;
22f62092f6SLey Foon Tan	};
23f62092f6SLey Foon Tan
244c9847b7SMathieu Malaterre	mbox_rx: mailbox@200 {
25f62092f6SLey Foon Tan		compatible = "altr,mailbox-1.0";
26f62092f6SLey Foon Tan		reg = <0x200 0x8>;
27f62092f6SLey Foon Tan		interrupt-parent = < &gic_0 >;
28f62092f6SLey Foon Tan		interrupts = <6>;
29f62092f6SLey Foon Tan		#mbox-cells = <1>;
30f62092f6SLey Foon Tan	};
31f62092f6SLey Foon Tan
32f62092f6SLey Foon TanMailbox client
33f62092f6SLey Foon Tan===============
34f62092f6SLey Foon Tan"mboxes" and the optional "mbox-names" (please see
35f62092f6SLey Foon TanDocumentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value
36f62092f6SLey Foon Tanof the mboxes property should contain a phandle to the mailbox controller
37f62092f6SLey Foon Tandevice node and second argument is the channel index. It must be 0 (hardware
38f62092f6SLey Foon Tansupport only one channel).The equivalent "mbox-names" property value can be
39f62092f6SLey Foon Tanused to give a name to the communication channel to be used by the client user.
40f62092f6SLey Foon Tan
41f62092f6SLey Foon TanExample:
424c9847b7SMathieu Malaterre	mclient0: mclient0@400 {
43f62092f6SLey Foon Tan		compatible = "client-1.0";
44f62092f6SLey Foon Tan		reg = <0x400 0x10>;
45f62092f6SLey Foon Tan		mbox-names = "mbox-tx", "mbox-rx";
46f62092f6SLey Foon Tan		mboxes = <&mbox_tx 0>,
47f62092f6SLey Foon Tan			 <&mbox_rx 0>;
48f62092f6SLey Foon Tan	};
49