Back to home page

OSCL-LXR

 
 

    


0001 Altera Mailbox Driver
0002 =====================
0003 
0004 Required properties:
0005 - compatible :  "altr,mailbox-1.0".
0006 - reg :         physical base address of the mailbox and length of
0007                 memory mapped region.
0008 - #mbox-cells:  Common mailbox binding property to identify the number
0009                 of cells required for the mailbox specifier. Should be 1.
0010 
0011 Optional properties:
0012 - interrupts :          interrupt number. The interrupt specifier format
0013                         depends on the interrupt controller parent.
0014 
0015 Example:
0016         mbox_tx: mailbox@100 {
0017                 compatible = "altr,mailbox-1.0";
0018                 reg = <0x100 0x8>;
0019                 interrupt-parent = < &gic_0 >;
0020                 interrupts = <5>;
0021                 #mbox-cells = <1>;
0022         };
0023 
0024         mbox_rx: mailbox@200 {
0025                 compatible = "altr,mailbox-1.0";
0026                 reg = <0x200 0x8>;
0027                 interrupt-parent = < &gic_0 >;
0028                 interrupts = <6>;
0029                 #mbox-cells = <1>;
0030         };
0031 
0032 Mailbox client
0033 ===============
0034 "mboxes" and the optional "mbox-names" (please see
0035 Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value
0036 of the mboxes property should contain a phandle to the mailbox controller
0037 device node and second argument is the channel index. It must be 0 (hardware
0038 support only one channel).The equivalent "mbox-names" property value can be
0039 used to give a name to the communication channel to be used by the client user.
0040 
0041 Example:
0042         mclient0: mclient0@400 {
0043                 compatible = "client-1.0";
0044                 reg = <0x400 0x10>;
0045                 mbox-names = "mbox-tx", "mbox-rx";
0046                 mboxes = <&mbox_tx 0>,
0047                          <&mbox_rx 0>;
0048         };