altera_tse.txt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. * Altera Triple-Speed Ethernet MAC driver (TSE)
  2. Required properties:
  3. - compatible: Should be "altr,tse-1.0" for legacy SGDMA based TSE, and should
  4. be "altr,tse-msgdma-1.0" for the preferred MSGDMA based TSE.
  5. - reg: Address and length of the register set for the device. It contains
  6. the information of registers in the same order as described by reg-names
  7. - reg-names: Should contain the reg names
  8. "control_port": MAC configuration space region
  9. "tx_csr": xDMA Tx dispatcher control and status space region
  10. "tx_desc": MSGDMA Tx dispatcher descriptor space region
  11. "rx_csr" : xDMA Rx dispatcher control and status space region
  12. "rx_desc": MSGDMA Rx dispatcher descriptor space region
  13. "rx_resp": MSGDMA Rx dispatcher response space region
  14. "s1": SGDMA descriptor memory
  15. - interrupts: Should contain the TSE interrupts and it's mode.
  16. - interrupt-names: Should contain the interrupt names
  17. "rx_irq": xDMA Rx dispatcher interrupt
  18. "tx_irq": xDMA Tx dispatcher interrupt
  19. - rx-fifo-depth: MAC receive FIFO buffer depth in bytes
  20. - tx-fifo-depth: MAC transmit FIFO buffer depth in bytes
  21. - phy-mode: See ethernet.txt in the same directory.
  22. - phy-handle: See ethernet.txt in the same directory.
  23. - phy-addr: See ethernet.txt in the same directory. A configuration should
  24. include phy-handle or phy-addr.
  25. - altr,has-supplementary-unicast:
  26. If present, TSE supports additional unicast addresses.
  27. Otherwise additional unicast addresses are not supported.
  28. - altr,has-hash-multicast-filter:
  29. If present, TSE supports a hash based multicast filter.
  30. Otherwise, hash-based multicast filtering is not supported.
  31. - mdio device tree subnode: When the TSE has a phy connected to its local
  32. mdio, there must be device tree subnode with the following
  33. required properties:
  34. - compatible: Must be "altr,tse-mdio".
  35. - #address-cells: Must be <1>.
  36. - #size-cells: Must be <0>.
  37. For each phy on the mdio bus, there must be a node with the following
  38. fields:
  39. - reg: phy id used to communicate to phy.
  40. - device_type: Must be "ethernet-phy".
  41. Optional properties:
  42. - local-mac-address: See ethernet.txt in the same directory.
  43. - max-frame-size: See ethernet.txt in the same directory.
  44. Example:
  45. tse_sub_0_eth_tse_0: ethernet@0x1,00000000 {
  46. compatible = "altr,tse-msgdma-1.0";
  47. reg = <0x00000001 0x00000000 0x00000400>,
  48. <0x00000001 0x00000460 0x00000020>,
  49. <0x00000001 0x00000480 0x00000020>,
  50. <0x00000001 0x000004A0 0x00000008>,
  51. <0x00000001 0x00000400 0x00000020>,
  52. <0x00000001 0x00000420 0x00000020>;
  53. reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
  54. interrupt-parent = <&hps_0_arm_gic_0>;
  55. interrupts = <0 41 4>, <0 40 4>;
  56. interrupt-names = "rx_irq", "tx_irq";
  57. rx-fifo-depth = <2048>;
  58. tx-fifo-depth = <2048>;
  59. address-bits = <48>;
  60. max-frame-size = <1500>;
  61. local-mac-address = [ 00 00 00 00 00 00 ];
  62. phy-mode = "gmii";
  63. altr,has-supplementary-unicast;
  64. altr,has-hash-multicast-filter;
  65. phy-handle = <&phy0>;
  66. mdio {
  67. compatible = "altr,tse-mdio";
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. phy0: ethernet-phy@0 {
  71. reg = <0x0>;
  72. device_type = "ethernet-phy";
  73. };
  74. phy1: ethernet-phy@1 {
  75. reg = <0x1>;
  76. device_type = "ethernet-phy";
  77. };
  78. };
  79. };
  80. tse_sub_1_eth_tse_0: ethernet@0x1,00001000 {
  81. compatible = "altr,tse-msgdma-1.0";
  82. reg = <0x00000001 0x00001000 0x00000400>,
  83. <0x00000001 0x00001460 0x00000020>,
  84. <0x00000001 0x00001480 0x00000020>,
  85. <0x00000001 0x000014A0 0x00000008>,
  86. <0x00000001 0x00001400 0x00000020>,
  87. <0x00000001 0x00001420 0x00000020>;
  88. reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
  89. interrupt-parent = <&hps_0_arm_gic_0>;
  90. interrupts = <0 43 4>, <0 42 4>;
  91. interrupt-names = "rx_irq", "tx_irq";
  92. rx-fifo-depth = <2048>;
  93. tx-fifo-depth = <2048>;
  94. address-bits = <48>;
  95. max-frame-size = <1500>;
  96. local-mac-address = [ 00 00 00 00 00 00 ];
  97. phy-mode = "gmii";
  98. altr,has-supplementary-unicast;
  99. altr,has-hash-multicast-filter;
  100. phy-handle = <&phy1>;
  101. };