brcm,asp-v2.0.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Broadcom ASP Ethernet controller
  7. maintainers:
  8. - Justin Chen <justin.chen@broadcom.com>
  9. - Florian Fainelli <florian.fainelli@broadcom.com>
  10. description: Broadcom Ethernet controller first introduced with 72165
  11. properties:
  12. compatible:
  13. oneOf:
  14. - items:
  15. - enum:
  16. - brcm,bcm74110-asp
  17. - const: brcm,asp-v3.0
  18. - items:
  19. - enum:
  20. - brcm,bcm74165b0-asp
  21. - const: brcm,asp-v2.2
  22. - items:
  23. - enum:
  24. - brcm,bcm74165-asp
  25. - const: brcm,asp-v2.1
  26. "#address-cells":
  27. const: 1
  28. "#size-cells":
  29. const: 1
  30. reg:
  31. maxItems: 1
  32. ranges: true
  33. interrupts:
  34. items:
  35. - description: RX/TX interrupt
  36. - description: Wake-on-LAN interrupt
  37. clocks:
  38. maxItems: 1
  39. ethernet-ports:
  40. type: object
  41. properties:
  42. "#address-cells":
  43. const: 1
  44. "#size-cells":
  45. const: 0
  46. patternProperties:
  47. "^port@[0-9a-f]+$":
  48. type: object
  49. $ref: ethernet-controller.yaml#
  50. unevaluatedProperties: false
  51. properties:
  52. reg:
  53. maxItems: 1
  54. description: Port number
  55. brcm,channel:
  56. $ref: /schemas/types.yaml#/definitions/uint32
  57. description: |
  58. ASP Channel Number
  59. The depacketizer channel that consumes packets from
  60. the unimac/port.
  61. required:
  62. - reg
  63. - brcm,channel
  64. additionalProperties: false
  65. patternProperties:
  66. "^mdio@[0-9a-f]+$":
  67. type: object
  68. $ref: brcm,unimac-mdio.yaml
  69. description:
  70. ASP internal UniMAC MDIO bus
  71. required:
  72. - compatible
  73. - reg
  74. - interrupts
  75. - clocks
  76. - ranges
  77. additionalProperties: false
  78. examples:
  79. - |
  80. #include <dt-bindings/interrupt-controller/irq.h>
  81. #include <dt-bindings/interrupt-controller/arm-gic.h>
  82. ethernet@9c00000 {
  83. compatible = "brcm,bcm74165-asp", "brcm,asp-v2.1";
  84. reg = <0x9c00000 0x1fff14>;
  85. interrupts-extended = <&intc GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  86. <&aon_pm_l2_intc 14>;
  87. ranges = <0x0 0x9c00000 0x1fff14>;
  88. clocks = <&scmi 14>;
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. mdio@c614 {
  92. compatible = "brcm,asp-v2.1-mdio";
  93. reg = <0xc614 0x8>;
  94. reg-names = "mdio";
  95. #address-cells = <1>;
  96. #size-cells = <0>;
  97. phy0: ethernet-phy@1 {
  98. reg = <1>;
  99. };
  100. };
  101. mdio@ce14 {
  102. compatible = "brcm,asp-v2.1-mdio";
  103. reg = <0xce14 0x8>;
  104. reg-names = "mdio";
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. phy1: ethernet-phy@1 {
  108. reg = <1>;
  109. };
  110. };
  111. ethernet-ports {
  112. #address-cells = <1>;
  113. #size-cells = <0>;
  114. port@0 {
  115. reg = <0>;
  116. brcm,channel = <8>;
  117. phy-mode = "rgmii";
  118. phy-handle = <&phy0>;
  119. };
  120. port@1 {
  121. reg = <1>;
  122. brcm,channel = <9>;
  123. phy-mode = "rgmii";
  124. phy-handle = <&phy1>;
  125. };
  126. };
  127. };