altera-mailbox.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. - interrupts : interrupt number. The interrupt specifier format
  11. depends on the interrupt controller parent.
  12. Example:
  13. mbox_tx: mailbox@100 {
  14. compatible = "altr,mailbox-1.0";
  15. reg = <0x100 0x8>;
  16. interrupt-parent = < &gic_0 >;
  17. interrupts = <5>;
  18. #mbox-cells = <1>;
  19. };
  20. mbox_rx: mailbox@200 {
  21. compatible = "altr,mailbox-1.0";
  22. reg = <0x200 0x8>;
  23. interrupt-parent = < &gic_0 >;
  24. interrupts = <6>;
  25. #mbox-cells = <1>;
  26. };
  27. Mailbox client
  28. ===============
  29. "mboxes" and the optional "mbox-names" (please see
  30. Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value
  31. of the mboxes property should contain a phandle to the mailbox controller
  32. device node and second argument is the channel index. It must be 0 (hardware
  33. support only one channel).The equivalent "mbox-names" property value can be
  34. used to give a name to the communication channel to be used by the client user.
  35. Example:
  36. mclient0: mclient0@400 {
  37. compatible = "client-1.0";
  38. reg = <0x400 0x10>;
  39. mbox-names = "mbox-tx", "mbox-rx";
  40. mboxes = <&mbox_tx 0>,
  41. <&mbox_rx 0>;
  42. };