739-01-dt-bindings-phy-mediatek-xfi-tphy-add-new-bindings.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. From patchwork Thu Feb 1 21:52:20 2024
  2. Content-Type: text/plain; charset="utf-8"
  3. MIME-Version: 1.0
  4. Content-Transfer-Encoding: 7bit
  5. X-Patchwork-Submitter: Daniel Golle <[email protected]>
  6. X-Patchwork-Id: 13541842
  7. Date: Thu, 1 Feb 2024 21:52:20 +0000
  8. From: Daniel Golle <[email protected]>
  9. To: Bc-bocun Chen <[email protected]>,
  10. Steven Liu <[email protected]>,
  11. John Crispin <[email protected]>,
  12. Chunfeng Yun <[email protected]>,
  13. Vinod Koul <[email protected]>,
  14. Kishon Vijay Abraham I <[email protected]>,
  15. Rob Herring <[email protected]>,
  16. Krzysztof Kozlowski <[email protected]>,
  17. Conor Dooley <[email protected]>,
  18. Daniel Golle <[email protected]>,
  19. Qingfang Deng <[email protected]>,
  20. SkyLake Huang <[email protected]>,
  21. Matthias Brugger <[email protected]>,
  22. AngeloGioacchino Del Regno <[email protected]>,
  23. Philipp Zabel <[email protected]>,
  24. [email protected],
  25. [email protected], [email protected],
  26. [email protected], [email protected],
  27. [email protected]
  28. Subject: [PATCH 1/2] dt-bindings: phy: mediatek,xfi-tphy: add new bindings
  29. Message-ID:
  30. <702afb0c1246d95c90b22e57105304028bdd3083.1706823233.git.daniel@makrotopia.org>
  31. MIME-Version: 1.0
  32. Content-Disposition: inline
  33. List-Id: Linux Phy Mailing list <linux-phy.lists.infradead.org>
  34. Add bindings for the MediaTek XFI T-PHY Ethernet SerDes PHY found in the
  35. MediaTek MT7988 SoC which can operate at various interfaces modes:
  36. via USXGMII PCS:
  37. * USXGMII
  38. * 10GBase-R
  39. * 5GBase-R
  40. via LynxI SGMII PCS:
  41. * 2500Base-X
  42. * 1000Base-X
  43. * Cisco SGMII (MAC side)
  44. Signed-off-by: Daniel Golle <[email protected]>
  45. ---
  46. .../bindings/phy/mediatek,xfi-tphy.yaml | 80 +++++++++++++++++++
  47. 1 file changed, 80 insertions(+)
  48. create mode 100644 Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml
  49. --- /dev/null
  50. +++ b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml
  51. @@ -0,0 +1,80 @@
  52. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  53. +%YAML 1.2
  54. +---
  55. +$id: http://devicetree.org/schemas/phy/mediatek,xfi-tphy.yaml#
  56. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  57. +
  58. +title: MediaTek XFI T-PHY
  59. +
  60. +maintainers:
  61. + - Daniel Golle <[email protected]>
  62. +
  63. +description:
  64. + The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes
  65. + used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found in
  66. + MediaTek's 10G-capabale SoCs.
  67. +
  68. +properties:
  69. + $nodename:
  70. + pattern: "^phy@[0-9a-f]+$"
  71. +
  72. + compatible:
  73. + const: mediatek,mt7988-xfi-tphy
  74. +
  75. + reg:
  76. + maxItems: 1
  77. +
  78. + clocks:
  79. + items:
  80. + - description: XFI PHY clock
  81. + - description: XFI register clock
  82. +
  83. + clock-names:
  84. + items:
  85. + - const: xfipll
  86. + - const: topxtal
  87. +
  88. + resets:
  89. + items:
  90. + - description: PEXTP reset
  91. +
  92. + mediatek,usxgmii-performance-errata:
  93. + $ref: /schemas/types.yaml#/definitions/flag
  94. + description:
  95. + One instance of the T-PHY on MT7988 suffers from a performance
  96. + problem in 10GBase-R mode which needs a work-around in the driver.
  97. + The work-around is enabled using this flag.
  98. +
  99. + "#phy-cells":
  100. + const: 0
  101. +
  102. +required:
  103. + - compatible
  104. + - reg
  105. + - clocks
  106. + - clock-names
  107. + - resets
  108. + - "#phy-cells"
  109. +
  110. +additionalProperties: false
  111. +
  112. +examples:
  113. + - |
  114. + #include <dt-bindings/clock/mediatek,mt7988-clk.h>
  115. + soc {
  116. + #address-cells = <2>;
  117. + #size-cells = <2>;
  118. +
  119. + phy@11f20000 {
  120. + compatible = "mediatek,mt7988-xfi-tphy";
  121. + reg = <0 0x11f20000 0 0x10000>;
  122. + clocks = <&xfi_pll CLK_XFIPLL_PLL_EN>,
  123. + <&topckgen CLK_TOP_XFI_PHY_0_XTAL_SEL>;
  124. + clock-names = "xfipll", "topxtal";
  125. + resets = <&watchdog 14>;
  126. + mediatek,usxgmii-performance-errata;
  127. + #phy-cells = <0>;
  128. + };
  129. + };
  130. +
  131. +...