2
0

101-21-arm-dts-medaitek-convert-gmac-link-mode-to-2500base-.patch 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. From 64ef7e977767e3b1305fb94a5169d8b7d3b19b6c Mon Sep 17 00:00:00 2001
  2. From: Weijie Gao <[email protected]>
  3. Date: Wed, 19 Jul 2023 17:17:18 +0800
  4. Subject: [PATCH 21/29] arm: dts: mediatek: convert gmac link mode to
  5. 2500base-x
  6. Now that individual 2.5Gbps SGMII support has been added to
  7. mtk-eth, all boards that use 2.5Gbps link with mt7531 must be
  8. converted to use "2500base-x" instead of "sgmii".
  9. Signed-off-by: Weijie Gao <[email protected]>
  10. [also convert BPi-R3]
  11. Signed-off-by: Daniel Golle <[email protected]>
  12. ---
  13. arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 4 ++--
  14. arch/arm/dts/mt7622-rfb.dts | 4 ++--
  15. arch/arm/dts/mt7629-rfb.dts | 4 ++--
  16. arch/arm/dts/mt7981-emmc-rfb.dts | 4 ++--
  17. arch/arm/dts/mt7981-rfb.dts | 4 ++--
  18. arch/arm/dts/mt7981-sd-rfb.dts | 4 ++--
  19. arch/arm/dts/mt7986a-bpi-r3-sd.dts | 4 ++--
  20. arch/arm/dts/mt7986a-rfb.dts | 4 ++--
  21. arch/arm/dts/mt7986a-sd-rfb.dts | 4 ++--
  22. arch/arm/dts/mt7986b-rfb.dts | 4 ++--
  23. arch/arm/dts/mt7986b-sd-rfb.dts | 4 ++--
  24. 11 files changed, 22 insertions(+), 22 deletions(-)
  25. --- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
  26. +++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
  27. @@ -224,12 +224,12 @@
  28. &eth {
  29. status = "okay";
  30. mediatek,gmac-id = <0>;
  31. - phy-mode = "sgmii";
  32. + phy-mode = "2500base-x";
  33. mediatek,switch = "mt7531";
  34. reset-gpios = <&gpio 54 GPIO_ACTIVE_HIGH>;
  35. fixed-link {
  36. - speed = <1000>;
  37. + speed = <2500>;
  38. full-duplex;
  39. };
  40. };
  41. --- a/arch/arm/dts/mt7622-rfb.dts
  42. +++ b/arch/arm/dts/mt7622-rfb.dts
  43. @@ -240,12 +240,12 @@
  44. &eth {
  45. status = "okay";
  46. mediatek,gmac-id = <0>;
  47. - phy-mode = "sgmii";
  48. + phy-mode = "2500base-x";
  49. mediatek,switch = "mt7531";
  50. reset-gpios = <&gpio 54 GPIO_ACTIVE_HIGH>;
  51. fixed-link {
  52. - speed = <1000>;
  53. + speed = <2500>;
  54. full-duplex;
  55. };
  56. };
  57. --- a/arch/arm/dts/mt7629-rfb.dts
  58. +++ b/arch/arm/dts/mt7629-rfb.dts
  59. @@ -25,12 +25,12 @@
  60. &eth {
  61. status = "okay";
  62. mediatek,gmac-id = <0>;
  63. - phy-mode = "sgmii";
  64. + phy-mode = "2500base-x";
  65. mediatek,switch = "mt7531";
  66. reset-gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
  67. fixed-link {
  68. - speed = <1000>;
  69. + speed = <2500>;
  70. full-duplex;
  71. };
  72. };
  73. --- a/arch/arm/dts/mt7981-emmc-rfb.dts
  74. +++ b/arch/arm/dts/mt7981-emmc-rfb.dts
  75. @@ -46,12 +46,12 @@
  76. &eth {
  77. status = "okay";
  78. mediatek,gmac-id = <0>;
  79. - phy-mode = "sgmii";
  80. + phy-mode = "2500base-x";
  81. mediatek,switch = "mt7531";
  82. reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
  83. fixed-link {
  84. - speed = <1000>;
  85. + speed = <2500>;
  86. full-duplex;
  87. };
  88. };
  89. --- a/arch/arm/dts/mt7981-rfb.dts
  90. +++ b/arch/arm/dts/mt7981-rfb.dts
  91. @@ -37,12 +37,12 @@
  92. &eth {
  93. status = "okay";
  94. mediatek,gmac-id = <0>;
  95. - phy-mode = "sgmii";
  96. + phy-mode = "2500base-x";
  97. mediatek,switch = "mt7531";
  98. reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
  99. fixed-link {
  100. - speed = <1000>;
  101. + speed = <2500>;
  102. full-duplex;
  103. };
  104. };
  105. --- a/arch/arm/dts/mt7981-sd-rfb.dts
  106. +++ b/arch/arm/dts/mt7981-sd-rfb.dts
  107. @@ -46,12 +46,12 @@
  108. &eth {
  109. status = "okay";
  110. mediatek,gmac-id = <0>;
  111. - phy-mode = "sgmii";
  112. + phy-mode = "2500base-x";
  113. mediatek,switch = "mt7531";
  114. reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
  115. fixed-link {
  116. - speed = <1000>;
  117. + speed = <2500>;
  118. full-duplex;
  119. };
  120. };
  121. --- a/arch/arm/dts/mt7986a-bpi-r3-sd.dts
  122. +++ b/arch/arm/dts/mt7986a-bpi-r3-sd.dts
  123. @@ -76,12 +76,12 @@
  124. &eth {
  125. status = "okay";
  126. mediatek,gmac-id = <0>;
  127. - phy-mode = "sgmii";
  128. + phy-mode = "2500base-x";
  129. mediatek,switch = "mt7531";
  130. reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  131. fixed-link {
  132. - speed = <1000>;
  133. + speed = <2500>;
  134. full-duplex;
  135. };
  136. };
  137. --- a/arch/arm/dts/mt7986a-rfb.dts
  138. +++ b/arch/arm/dts/mt7986a-rfb.dts
  139. @@ -55,12 +55,12 @@
  140. &eth {
  141. status = "okay";
  142. mediatek,gmac-id = <0>;
  143. - phy-mode = "sgmii";
  144. + phy-mode = "2500base-x";
  145. mediatek,switch = "mt7531";
  146. reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  147. fixed-link {
  148. - speed = <1000>;
  149. + speed = <2500>;
  150. full-duplex;
  151. };
  152. };
  153. --- a/arch/arm/dts/mt7986a-sd-rfb.dts
  154. +++ b/arch/arm/dts/mt7986a-sd-rfb.dts
  155. @@ -47,12 +47,12 @@
  156. &eth {
  157. status = "okay";
  158. mediatek,gmac-id = <0>;
  159. - phy-mode = "sgmii";
  160. + phy-mode = "2500base-x";
  161. mediatek,switch = "mt7531";
  162. reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  163. fixed-link {
  164. - speed = <1000>;
  165. + speed = <2500>;
  166. full-duplex;
  167. };
  168. };
  169. --- a/arch/arm/dts/mt7986b-rfb.dts
  170. +++ b/arch/arm/dts/mt7986b-rfb.dts
  171. @@ -46,12 +46,12 @@
  172. &eth {
  173. status = "okay";
  174. mediatek,gmac-id = <0>;
  175. - phy-mode = "sgmii";
  176. + phy-mode = "2500base-x";
  177. mediatek,switch = "mt7531";
  178. reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  179. fixed-link {
  180. - speed = <1000>;
  181. + speed = <2500>;
  182. full-duplex;
  183. };
  184. };
  185. --- a/arch/arm/dts/mt7986b-sd-rfb.dts
  186. +++ b/arch/arm/dts/mt7986b-sd-rfb.dts
  187. @@ -47,12 +47,12 @@
  188. &eth {
  189. status = "okay";
  190. mediatek,gmac-id = <0>;
  191. - phy-mode = "sgmii";
  192. + phy-mode = "2500base-x";
  193. mediatek,switch = "mt7531";
  194. reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  195. fixed-link {
  196. - speed = <1000>;
  197. + speed = <2500>;
  198. full-duplex;
  199. };
  200. };