hisilicon,hi3660-mailbox.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Hisilicon Hi3660 Mailbox Controller
  2. Hisilicon Hi3660 mailbox controller supports up to 32 channels. Messages
  3. are passed between processors, including application & communication
  4. processors, MCU, HIFI, etc. Each channel is unidirectional and accessed
  5. by using MMIO registers; it supports maximum to 8 words message.
  6. Controller
  7. ----------
  8. Required properties:
  9. - compatible: : Shall be "hisilicon,hi3660-mbox"
  10. - reg: : Offset and length of the device's register set
  11. - #mbox-cells: : Must be 3
  12. <&phandle channel dst_irq ack_irq>
  13. phandle : Label name of controller
  14. channel : Channel number
  15. dst_irq : Remote interrupt vector
  16. ack_irq : Local interrupt vector
  17. - interrupts: : Contains the two IRQ lines for mailbox.
  18. Example:
  19. mailbox: mailbox@e896b000 {
  20. compatible = "hisilicon,hi3660-mbox";
  21. reg = <0x0 0xe896b000 0x0 0x1000>;
  22. interrupts = <0x0 0xc0 0x4>,
  23. <0x0 0xc1 0x4>;
  24. #mbox-cells = <3>;
  25. };
  26. Client
  27. ------
  28. Required properties:
  29. - compatible : See the client docs
  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. stub_clock: stub_clock@e896b500 {
  36. compatible = "hisilicon,hi3660-stub-clk";
  37. reg = <0x0 0xe896b500 0x0 0x0100>;
  38. #clock-cells = <1>;
  39. mboxes = <&mailbox 13 3 0>;
  40. };