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- interrupt-parent : interrupt source phandle. 13f62092f6SLey Foon Tan- interrupts : interrupt number. The interrupt specifier format 14f62092f6SLey Foon Tan depends on the interrupt controller parent. 15f62092f6SLey Foon Tan 16f62092f6SLey Foon TanExample: 174c9847b7SMathieu Malaterre mbox_tx: mailbox@100 { 18f62092f6SLey Foon Tan compatible = "altr,mailbox-1.0"; 19f62092f6SLey Foon Tan reg = <0x100 0x8>; 20f62092f6SLey Foon Tan interrupt-parent = < &gic_0 >; 21f62092f6SLey Foon Tan interrupts = <5>; 22f62092f6SLey Foon Tan #mbox-cells = <1>; 23f62092f6SLey Foon Tan }; 24f62092f6SLey Foon Tan 254c9847b7SMathieu Malaterre mbox_rx: mailbox@200 { 26f62092f6SLey Foon Tan compatible = "altr,mailbox-1.0"; 27f62092f6SLey Foon Tan reg = <0x200 0x8>; 28f62092f6SLey Foon Tan interrupt-parent = < &gic_0 >; 29f62092f6SLey Foon Tan interrupts = <6>; 30f62092f6SLey Foon Tan #mbox-cells = <1>; 31f62092f6SLey Foon Tan }; 32f62092f6SLey Foon Tan 33f62092f6SLey Foon TanMailbox client 34f62092f6SLey Foon Tan=============== 35f62092f6SLey Foon Tan"mboxes" and the optional "mbox-names" (please see 36f62092f6SLey Foon TanDocumentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value 37f62092f6SLey Foon Tanof the mboxes property should contain a phandle to the mailbox controller 38f62092f6SLey Foon Tandevice node and second argument is the channel index. It must be 0 (hardware 39f62092f6SLey Foon Tansupport only one channel).The equivalent "mbox-names" property value can be 40f62092f6SLey Foon Tanused to give a name to the communication channel to be used by the client user. 41f62092f6SLey Foon Tan 42f62092f6SLey Foon TanExample: 434c9847b7SMathieu Malaterre mclient0: mclient0@400 { 44f62092f6SLey Foon Tan compatible = "client-1.0"; 45f62092f6SLey Foon Tan reg = <0x400 0x10>; 46f62092f6SLey Foon Tan mbox-names = "mbox-tx", "mbox-rx"; 47f62092f6SLey Foon Tan mboxes = <&mbox_tx 0>, 48f62092f6SLey Foon Tan <&mbox_rx 0>; 49f62092f6SLey Foon Tan }; 50