altera-mailbox.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Altera Mailbox Driver
  2. =====================
  3. Required properties:
  4. - compatible : "altr,mailbox-1.0".
  5. - reg : physical base address of the mailbox and length of
  6. memory mapped region.
  7. - #mbox-cells: Common mailbox binding property to identify the number
  8. of cells required for the mailbox specifier. Should be 1.
  9. Optional properties:
  10. - interrupt-parent : interrupt source phandle.
  11. - interrupts : interrupt number. The interrupt specifier format
  12. depends on the interrupt controller parent.
  13. Example:
  14. mbox_tx: mailbox@0x100 {
  15. compatible = "altr,mailbox-1.0";
  16. reg = <0x100 0x8>;
  17. interrupt-parent = < &gic_0 >;
  18. interrupts = <5>;
  19. #mbox-cells = <1>;
  20. };
  21. mbox_rx: mailbox@0x200 {
  22. compatible = "altr,mailbox-1.0";
  23. reg = <0x200 0x8>;
  24. interrupt-parent = < &gic_0 >;
  25. interrupts = <6>;
  26. #mbox-cells = <1>;
  27. };
  28. Mailbox client
  29. ===============
  30. "mboxes" and the optional "mbox-names" (please see
  31. Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value
  32. of the mboxes property should contain a phandle to the mailbox controller
  33. device node and second argument is the channel index. It must be 0 (hardware
  34. support only one channel).The equivalent "mbox-names" property value can be
  35. used to give a name to the communication channel to be used by the client user.
  36. Example:
  37. mclient0: mclient0@0x400 {
  38. compatible = "client-1.0";
  39. reg = <0x400 0x10>;
  40. mbox-names = "mbox-tx", "mbox-rx";
  41. mboxes = <&mbox_tx 0>,
  42. <&mbox_rx 0>;
  43. };