sti-mailbox.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ST Microelectronics Mailbox Driver
  2. Each ST Mailbox IP currently consists of 4 instances of 32 channels. Messages
  3. are passed between Application and Remote processors using shared memory.
  4. Controller
  5. ----------
  6. Required properties:
  7. - compatible : Should be "st,stih407-mailbox"
  8. - reg : Offset and length of the device's register set
  9. - mbox-name : Name of the mailbox
  10. - #mbox-cells: : Must be 2
  11. <&phandle instance channel direction>
  12. phandle : Label name of controller
  13. instance : Instance number
  14. channel : Channel number
  15. Optional properties
  16. - interrupts : Contains the IRQ line for a Rx mailbox
  17. Example:
  18. mailbox0: mailbox@0 {
  19. compatible = "st,stih407-mailbox";
  20. reg = <0x08f00000 0x1000>;
  21. interrupts = <GIC_SPI 1 IRQ_TYPE_NONE>;
  22. #mbox-cells = <2>;
  23. mbox-name = "a9";
  24. };
  25. Client
  26. ------
  27. Required properties:
  28. - compatible : Many (See the client docs)
  29. - reg : Shared (between Application and Remote) memory address
  30. - mboxes : Standard property to specify a Mailbox (See ./mailbox.txt)
  31. Cells must match 'mbox-cells' (See Controller docs above)
  32. Optional properties
  33. - mbox-names : Name given to channels seen in the 'mboxes' property.
  34. Example:
  35. mailbox_test {
  36. compatible = "mailbox-test";
  37. reg = <0x[shared_memory_address], [shared_memory_size]>;
  38. mboxes = <&mailbox2 0 1>, <&mailbox0 2 1>;
  39. mbox-names = "tx", "rx";
  40. };