brcm,iproc-flexrm-mbox.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Broadcom FlexRM Ring Manager
  2. ============================
  3. The Broadcom FlexRM ring manager provides a set of rings which can be
  4. used to submit work to offload engines. An SoC may have multiple FlexRM
  5. hardware blocks. There is one device tree entry per FlexRM block. The
  6. FlexRM driver will create a mailbox-controller instance for given FlexRM
  7. hardware block where each mailbox channel is a separate FlexRM ring.
  8. Required properties:
  9. --------------------
  10. - compatible: Should be "brcm,iproc-flexrm-mbox"
  11. - reg: Specifies base physical address and size of the FlexRM
  12. ring registers
  13. - msi-parent: Phandles (and potential Device IDs) to MSI controllers
  14. The FlexRM engine will send MSIs (instead of wired
  15. interrupts) to CPU. There is one MSI for each FlexRM ring.
  16. Refer devicetree/bindings/interrupt-controller/msi.txt
  17. - #mbox-cells: Specifies the number of cells needed to encode a mailbox
  18. channel. This should be 3.
  19. The 1st cell is the mailbox channel number.
  20. The 2nd cell contains MSI completion threshold. This is the
  21. number of completion messages for which FlexRM will inject
  22. one MSI interrupt to CPU.
  23. The 3nd cell contains MSI timer value representing time for
  24. which FlexRM will wait to accumulate N completion messages
  25. where N is the value specified by 2nd cell above. If FlexRM
  26. does not get required number of completion messages in time
  27. specified by this cell then it will inject one MSI interrupt
  28. to CPU provided atleast one completion message is available.
  29. Optional properties:
  30. --------------------
  31. - dma-coherent: Present if DMA operations made by the FlexRM engine (such
  32. as DMA descriptor access, access to buffers pointed by DMA
  33. descriptors and read/write pointer updates to DDR) are
  34. cache coherent with the CPU.
  35. Example:
  36. --------
  37. crypto_mbox: mbox@67000000 {
  38. compatible = "brcm,iproc-flexrm-mbox";
  39. reg = <0x67000000 0x200000>;
  40. msi-parent = <&gic_its 0x7f00>;
  41. #mbox-cells = <3>;
  42. };
  43. crypto@672c0000 {
  44. compatible = "brcm,spu2-v2-crypto";
  45. reg = <0x672c0000 0x1000>;
  46. mboxes = <&crypto_mbox 0 0x1 0xffff>,
  47. <&crypto_mbox 1 0x1 0xffff>,
  48. <&crypto_mbox 16 0x1 0xffff>,
  49. <&crypto_mbox 17 0x1 0xffff>,
  50. <&crypto_mbox 30 0x1 0xffff>,
  51. <&crypto_mbox 31 0x1 0xffff>;
  52. };