faraday,ftgmac100.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/faraday,ftgmac100.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Faraday Technology FTGMAC100 gigabit ethernet controller
  7. maintainers:
  8. - Po-Yu Chuang <ratbert@faraday-tech.com>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - const: faraday,ftgmac100
  13. - items:
  14. - enum:
  15. - aspeed,ast2400-mac
  16. - aspeed,ast2500-mac
  17. - aspeed,ast2600-mac
  18. - const: faraday,ftgmac100
  19. reg:
  20. maxItems: 1
  21. interrupts:
  22. maxItems: 1
  23. clocks:
  24. minItems: 1
  25. items:
  26. - description: MAC IP clock
  27. - description: RMII RCLK gate for AST2500/2600
  28. resets:
  29. maxItems: 1
  30. clock-names:
  31. minItems: 1
  32. items:
  33. - const: MACCLK
  34. - const: RCLK
  35. phy-mode:
  36. enum:
  37. - rgmii
  38. - rgmii-id
  39. - rgmii-rxid
  40. - rgmii-txid
  41. - rmii
  42. phy-handle: true
  43. use-ncsi:
  44. description:
  45. Use the NC-SI stack instead of an MDIO PHY. Currently assumes
  46. rmii (100bT) but kept as a separate property in case NC-SI grows support
  47. for a gigabit link.
  48. type: boolean
  49. no-hw-checksum:
  50. description:
  51. Used to disable HW checksum support. Here for backward
  52. compatibility as the driver now should have correct defaults based on
  53. the SoC.
  54. type: boolean
  55. deprecated: true
  56. mdio:
  57. $ref: /schemas/net/mdio.yaml#
  58. required:
  59. - compatible
  60. - reg
  61. - interrupts
  62. allOf:
  63. - $ref: ethernet-controller.yaml#
  64. - if:
  65. properties:
  66. compatible:
  67. contains:
  68. enum:
  69. - aspeed,ast2600-mac
  70. then:
  71. properties:
  72. resets: true
  73. else:
  74. properties:
  75. resets: false
  76. unevaluatedProperties: false
  77. examples:
  78. - |
  79. ethernet@1e660000 {
  80. compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
  81. reg = <0x1e660000 0x180>;
  82. interrupts = <2>;
  83. use-ncsi;
  84. };
  85. ethernet@1e680000 {
  86. compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
  87. reg = <0x1e680000 0x180>;
  88. interrupts = <2>;
  89. phy-handle = <&phy>;
  90. phy-mode = "rgmii";
  91. mdio {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. phy: ethernet-phy@1 {
  95. compatible = "ethernet-phy-ieee802.3-c22";
  96. reg = <1>;
  97. };
  98. };
  99. };