hisilicon,hi6220-mailbox.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Hisilicon Hi6220 Mailbox Driver
  2. ===============================
  3. Hisilicon Hi6220 mailbox supports up to 32 channels. Each channel
  4. is unidirectional with a maximum message size of 8 words. I/O is
  5. performed using register access (there is no DMA) and the cell
  6. raises an interrupt when messages are received.
  7. Mailbox Device Node:
  8. ====================
  9. Required properties:
  10. --------------------
  11. - compatible: Shall be "hisilicon,hi6220-mbox"
  12. - reg: Contains the mailbox register address range (base
  13. address and length); the first item is for IPC
  14. registers, the second item is shared buffer for
  15. slots.
  16. - #mbox-cells: Common mailbox binding property to identify the number
  17. of cells required for the mailbox specifier. Must be 3.
  18. <&phandle slot_id dst_irq ack_irq>
  19. phandle: Label name of mailbox controller
  20. slot_id: Slot id used either for TX or RX
  21. dst_irq: IRQ identifier index number which used by MCU
  22. ack_irq: IRQ identifier index number with generating a
  23. TX/RX interrupt to application processor,
  24. mailbox driver uses it to acknowledge interrupt
  25. - interrupts: Contains the interrupt information for the mailbox
  26. device. The format is dependent on which interrupt
  27. controller the SoCs use.
  28. Optional Properties:
  29. --------------------
  30. - hi6220,mbox-tx-noirq: Property of MCU firmware's feature, so mailbox driver
  31. use this flag to ask MCU to enable "automatic idle
  32. flag" mode or IRQ generated mode to acknowledge a TX
  33. completion.
  34. Example:
  35. --------
  36. mailbox: mailbox@f7510000 {
  37. compatible = "hisilicon,hi6220-mbox";
  38. reg = <0x0 0xf7510000 0x0 0x1000>, /* IPC_S */
  39. <0x0 0x06dff800 0x0 0x0800>; /* Mailbox */
  40. interrupt-parent = <&gic>;
  41. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
  42. #mbox-cells = <3>;
  43. };
  44. Mailbox client
  45. ===============
  46. Required properties:
  47. --------------------
  48. - compatible: Many (See the client docs).
  49. - mboxes: Standard property to specify a Mailbox (See ./mailbox.txt)
  50. Cells must match 'mbox-cells' (See Mailbox Device Node above).
  51. Optional Properties:
  52. --------------------
  53. - mbox-names: Name given to channels seen in the 'mboxes' property.
  54. Example:
  55. --------
  56. stub_clock: stub_clock {
  57. compatible = "hisilicon,hi6220-stub-clk";
  58. hisilicon,hi6220-clk-sram = <&sram>;
  59. #clock-cells = <1>;
  60. mbox-names = "mbox-tx", "mbox-rx";
  61. mboxes = <&mailbox 1 0 11>, <&mailbox 0 1 10>;
  62. };