0355-arm64-dts-qcom-Add-IPQ9574-RDP433-port-node.patch 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. From 001b663ecc5f838dac143623badae0e472749d8a Mon Sep 17 00:00:00 2001
  2. From: Lei Wei <[email protected]>
  3. Date: Tue, 14 May 2024 10:53:27 +0800
  4. Subject: [PATCH] arm64: dts: qcom: Add IPQ9574 RDP433 port node
  5. There are 6 PPE MAC ports available on RDP433. The port1-port4 are
  6. connected with QCA8075 QUAD PHYs through UNIPHY0 PCS channel0-channel3.
  7. The port5 is connected with Aquantia PHY through UNIPHY1 PCS channel0
  8. and the port6 is connected with Aquantia PHY through UNIPHY2 PCS
  9. channel0.
  10. Change-Id: Ic16efdef2fe2cff7b1e80245619c0f82afb24cb9
  11. Signed-off-by: Lei Wei <[email protected]>
  12. ---
  13. arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 167 ++++++++++++++++++++
  14. 1 file changed, 167 insertions(+)
  15. --- a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
  16. +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
  17. @@ -55,6 +55,46 @@
  18. status = "okay";
  19. };
  20. +&mdio {
  21. + reset-gpios = <&tlmm 60 GPIO_ACTIVE_LOW>;
  22. + clock-frequency = <6250000>;
  23. + status = "okay";
  24. +
  25. + ethernet-phy-package@0 {
  26. + compatible = "qcom,qca8075-package";
  27. + #address-cells = <1>;
  28. + #size-cells = <0>;
  29. + reg = <0x10>;
  30. + qcom,package-mode = "qsgmii";
  31. +
  32. + phy0: ethernet-phy@10 {
  33. + reg = <0x10>;
  34. + };
  35. +
  36. + phy1: ethernet-phy@11 {
  37. + reg = <0x11>;
  38. + };
  39. +
  40. + phy2: ethernet-phy@12 {
  41. + reg = <0x12>;
  42. + };
  43. +
  44. + phy3: ethernet-phy@13 {
  45. + reg = <0x13>;
  46. + };
  47. + };
  48. +
  49. + phy4: ethernet-phy@8 {
  50. + compatible ="ethernet-phy-ieee802.3-c45";
  51. + reg = <8>;
  52. + };
  53. +
  54. + phy5: ethernet-phy@0 {
  55. + compatible ="ethernet-phy-ieee802.3-c45";
  56. + reg = <0>;
  57. + };
  58. +};
  59. +
  60. &tlmm {
  61. pcie1_default: pcie1-default-state {
  62. @@ -161,3 +201,130 @@
  63. };
  64. };
  65. };
  66. +
  67. +&qcom_ppe {
  68. + ethernet-ports {
  69. + #address-cells = <1>;
  70. + #size-cells = <0>;
  71. +
  72. + port@1 {
  73. + reg = <1>;
  74. + phy-mode = "qsgmii";
  75. + managed = "in-band-status";
  76. + phy-handle = <&phy0>;
  77. + pcs-handle = <&pcsuniphy0_ch0>;
  78. + clocks = <&nsscc NSS_CC_PORT1_MAC_CLK>,
  79. + <&nsscc NSS_CC_PORT1_RX_CLK>,
  80. + <&nsscc NSS_CC_PORT1_TX_CLK>;
  81. + clock-names = "port_mac",
  82. + "port_rx",
  83. + "port_tx";
  84. + resets = <&nsscc PORT1_MAC_ARES>,
  85. + <&nsscc PORT1_RX_ARES>,
  86. + <&nsscc PORT1_TX_ARES>;
  87. + reset-names = "port_mac",
  88. + "port_rx",
  89. + "port_tx";
  90. + };
  91. +
  92. + port@2 {
  93. + reg = <2>;
  94. + phy-mode = "qsgmii";
  95. + managed = "in-band-status";
  96. + phy-handle = <&phy1>;
  97. + pcs-handle = <&pcsuniphy0_ch1>;
  98. + clocks = <&nsscc NSS_CC_PORT2_MAC_CLK>,
  99. + <&nsscc NSS_CC_PORT2_RX_CLK>,
  100. + <&nsscc NSS_CC_PORT2_TX_CLK>;
  101. + clock-names = "port_mac",
  102. + "port_rx",
  103. + "port_tx";
  104. + resets = <&nsscc PORT2_MAC_ARES>,
  105. + <&nsscc PORT2_RX_ARES>,
  106. + <&nsscc PORT2_TX_ARES>;
  107. + reset-names = "port_mac",
  108. + "port_rx",
  109. + "port_tx";
  110. + };
  111. +
  112. + port@3 {
  113. + reg = <3>;
  114. + phy-mode = "qsgmii";
  115. + managed = "in-band-status";
  116. + phy-handle = <&phy2>;
  117. + pcs-handle = <&pcsuniphy0_ch2>;
  118. + clocks = <&nsscc NSS_CC_PORT3_MAC_CLK>,
  119. + <&nsscc NSS_CC_PORT3_RX_CLK>,
  120. + <&nsscc NSS_CC_PORT3_TX_CLK>;
  121. + clock-names = "port_mac",
  122. + "port_rx",
  123. + "port_tx";
  124. + resets = <&nsscc PORT3_MAC_ARES>,
  125. + <&nsscc PORT3_RX_ARES>,
  126. + <&nsscc PORT3_TX_ARES>;
  127. + reset-names = "port_mac",
  128. + "port_rx",
  129. + "port_tx";
  130. + };
  131. +
  132. + port@4 {
  133. + reg = <4>;
  134. + phy-mode = "qsgmii";
  135. + managed = "in-band-status";
  136. + phy-handle = <&phy3>;
  137. + pcs-handle = <&pcsuniphy0_ch3>;
  138. + clocks = <&nsscc NSS_CC_PORT4_MAC_CLK>,
  139. + <&nsscc NSS_CC_PORT4_RX_CLK>,
  140. + <&nsscc NSS_CC_PORT4_TX_CLK>;
  141. + clock-names = "port_mac",
  142. + "port_rx",
  143. + "port_tx";
  144. + resets = <&nsscc PORT4_MAC_ARES>,
  145. + <&nsscc PORT4_RX_ARES>,
  146. + <&nsscc PORT4_TX_ARES>;
  147. + reset-names = "port_mac",
  148. + "port_rx",
  149. + "port_tx";
  150. + };
  151. +
  152. + port@5 {
  153. + reg = <5>;
  154. + phy-mode = "usxgmii";
  155. + managed = "in-band-status";
  156. + phy-handle = <&phy4>;
  157. + pcs-handle = <&pcsuniphy1_ch0>;
  158. + clocks = <&nsscc NSS_CC_PORT5_MAC_CLK>,
  159. + <&nsscc NSS_CC_PORT5_RX_CLK>,
  160. + <&nsscc NSS_CC_PORT5_TX_CLK>;
  161. + clock-names = "port_mac",
  162. + "port_rx",
  163. + "port_tx";
  164. + resets = <&nsscc PORT5_MAC_ARES>,
  165. + <&nsscc PORT5_RX_ARES>,
  166. + <&nsscc PORT5_TX_ARES>;
  167. + reset-names = "port_mac",
  168. + "port_rx",
  169. + "port_tx";
  170. + };
  171. +
  172. + port@6 {
  173. + reg = <6>;
  174. + phy-mode = "usxgmii";
  175. + managed = "in-band-status";
  176. + phy-handle = <&phy5>;
  177. + pcs-handle = <&pcsuniphy2_ch0>;
  178. + clocks = <&nsscc NSS_CC_PORT6_MAC_CLK>,
  179. + <&nsscc NSS_CC_PORT6_RX_CLK>,
  180. + <&nsscc NSS_CC_PORT6_TX_CLK>;
  181. + clock-names = "port_mac",
  182. + "port_rx",
  183. + "port_tx";
  184. + resets = <&nsscc PORT6_MAC_ARES>,
  185. + <&nsscc PORT6_RX_ARES>,
  186. + <&nsscc PORT6_TX_ARES>;
  187. + reset-names = "port_mac",
  188. + "port_rx",
  189. + "port_tx";
  190. + };
  191. + };
  192. +};