altr,tse.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/altr,tse.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Altera Triple Speed Ethernet MAC driver (TSE)
  7. maintainers:
  8. - Maxime Chevallier <maxime.chevallier@bootlin.com>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - const: altr,tse-1.0
  13. - const: ALTR,tse-1.0
  14. deprecated: true
  15. - const: altr,tse-msgdma-1.0
  16. interrupts:
  17. minItems: 2
  18. interrupt-names:
  19. items:
  20. - const: rx_irq
  21. - const: tx_irq
  22. rx-fifo-depth:
  23. $ref: /schemas/types.yaml#/definitions/uint32
  24. description:
  25. Depth in bytes of the RX FIFO
  26. tx-fifo-depth:
  27. $ref: /schemas/types.yaml#/definitions/uint32
  28. description:
  29. Depth in bytes of the TX FIFO
  30. altr,has-supplementary-unicast:
  31. type: boolean
  32. description:
  33. If present, TSE supports additional unicast addresses.
  34. altr,has-hash-multicast-filter:
  35. type: boolean
  36. description:
  37. If present, TSE supports hash based multicast filter.
  38. mdio:
  39. $ref: mdio.yaml#
  40. unevaluatedProperties: false
  41. description:
  42. Creates and registers an MDIO bus.
  43. properties:
  44. compatible:
  45. const: altr,tse-mdio
  46. required:
  47. - compatible
  48. required:
  49. - compatible
  50. - reg
  51. - interrupts
  52. - rx-fifo-depth
  53. - tx-fifo-depth
  54. allOf:
  55. - $ref: ethernet-controller.yaml#
  56. - if:
  57. properties:
  58. compatible:
  59. contains:
  60. enum:
  61. - altr,tse-1.0
  62. - ALTR,tse-1.0
  63. then:
  64. properties:
  65. reg:
  66. minItems: 4
  67. reg-names:
  68. items:
  69. - const: control_port
  70. - const: rx_csr
  71. - const: tx_csr
  72. - const: s1
  73. - if:
  74. properties:
  75. compatible:
  76. contains:
  77. enum:
  78. - altr,tse-msgdma-1.0
  79. then:
  80. properties:
  81. reg:
  82. minItems: 6
  83. maxItems: 7
  84. reg-names:
  85. minItems: 6
  86. items:
  87. - const: control_port
  88. - const: rx_csr
  89. - const: rx_desc
  90. - const: rx_resp
  91. - const: tx_csr
  92. - const: tx_desc
  93. - const: pcs
  94. unevaluatedProperties: false
  95. examples:
  96. - |
  97. tse_sub_0: ethernet@c0100000 {
  98. compatible = "altr,tse-msgdma-1.0";
  99. reg = <0xc0100000 0x00000400>,
  100. <0xc0101000 0x00000020>,
  101. <0xc0102000 0x00000020>,
  102. <0xc0103000 0x00000008>,
  103. <0xc0104000 0x00000020>,
  104. <0xc0105000 0x00000020>,
  105. <0xc0106000 0x00000100>;
  106. reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc", "pcs";
  107. interrupt-parent = <&intc>;
  108. interrupts = <0 44 4>,<0 45 4>;
  109. interrupt-names = "rx_irq","tx_irq";
  110. rx-fifo-depth = <2048>;
  111. tx-fifo-depth = <2048>;
  112. max-frame-size = <1500>;
  113. local-mac-address = [ 00 00 00 00 00 00 ];
  114. altr,has-supplementary-unicast;
  115. altr,has-hash-multicast-filter;
  116. sfp = <&sfp0>;
  117. phy-mode = "sgmii";
  118. managed = "in-band-status";
  119. };
  120. - |
  121. tse_sub_1_eth_tse_0: ethernet@1,00001000 {
  122. compatible = "altr,tse-msgdma-1.0";
  123. reg = <0x00001000 0x00000400>,
  124. <0x00001460 0x00000020>,
  125. <0x00001480 0x00000020>,
  126. <0x000014A0 0x00000008>,
  127. <0x00001400 0x00000020>,
  128. <0x00001420 0x00000020>;
  129. reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
  130. interrupt-parent = <&hps_0_arm_gic_0>;
  131. interrupts = <0 43 4>, <0 42 4>;
  132. interrupt-names = "rx_irq", "tx_irq";
  133. rx-fifo-depth = <2048>;
  134. tx-fifo-depth = <2048>;
  135. max-frame-size = <1500>;
  136. local-mac-address = [ 00 00 00 00 00 00 ];
  137. phy-mode = "gmii";
  138. altr,has-supplementary-unicast;
  139. altr,has-hash-multicast-filter;
  140. phy-handle = <&phy1>;
  141. mdio {
  142. compatible = "altr,tse-mdio";
  143. #address-cells = <1>;
  144. #size-cells = <0>;
  145. phy1: ethernet-phy@1 {
  146. reg = <0x1>;
  147. };
  148. };
  149. };
  150. ...