hisilicon,mbigen-v2.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Hisilicon mbigen device tree bindings.
  2. =======================================
  3. Mbigen means: message based interrupt generator.
  4. MBI is kind of msi interrupt only used on Non-PCI devices.
  5. To reduce the wired interrupt number connected to GIC,
  6. Hisilicon designed mbigen to collect and generate interrupt.
  7. Non-pci devices can connect to mbigen and generate the
  8. interrupt by writing ITS register.
  9. The mbigen chip and devices connect to mbigen have the following properties:
  10. Mbigen main node required properties:
  11. -------------------------------------------
  12. - compatible: Should be "hisilicon,mbigen-v2"
  13. - reg: Specifies the base physical address and size of the Mbigen
  14. registers.
  15. Mbigen sub node required properties:
  16. ------------------------------------------
  17. - interrupt controller: Identifies the node as an interrupt controller
  18. - msi-parent: Specifies the MSI controller this mbigen use.
  19. For more detail information,please refer to the generic msi-parent binding in
  20. Documentation/devicetree/bindings/interrupt-controller/msi.txt.
  21. - num-pins: the total number of pins implemented in this Mbigen
  22. instance.
  23. - #interrupt-cells : Specifies the number of cells needed to encode an
  24. interrupt source. The value must be 2.
  25. The 1st cell is hardware pin number of the interrupt.This number is local to
  26. each mbigen chip and in the range from 0 to the maximum interrupts number
  27. of the mbigen.
  28. The 2nd cell is the interrupt trigger type.
  29. The value of this cell should be:
  30. 1: rising edge triggered
  31. or
  32. 4: high level triggered
  33. Examples:
  34. mbigen_chip_dsa {
  35. compatible = "hisilicon,mbigen-v2";
  36. reg = <0x0 0xc0080000 0x0 0x10000>;
  37. mbigen_gmac:intc_gmac {
  38. interrupt-controller;
  39. msi-parent = <&its_dsa 0x40b1c>;
  40. num-pins = <9>;
  41. #interrupt-cells = <2>;
  42. };
  43. mbigen_i2c:intc_i2c {
  44. interrupt-controller;
  45. msi-parent = <&its_dsa 0x40b0e>;
  46. num-pins = <2>;
  47. #interrupt-cells = <2>;
  48. };
  49. };
  50. Devices connect to mbigen required properties:
  51. ----------------------------------------------------
  52. -interrupts:Specifies the interrupt source.
  53. For the specific information of each cell in this property,please refer to
  54. the "interrupt-cells" description mentioned above.
  55. Examples:
  56. gmac0: ethernet@c2080000 {
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. reg = <0 0xc2080000 0 0x20000>,
  60. <0 0xc0000000 0 0x1000>;
  61. interrupt-parent = <&mbigen_device_gmac>;
  62. interrupts = <656 1>,
  63. <657 1>;
  64. };