0600-6-6-arm64-dts-mt7622-add-mt7531-dsa-to-bananapi-bpi-r64-board.patch 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. From patchwork Tue Dec 10 08:14:42 2019
  2. Content-Type: text/plain; charset="utf-8"
  3. MIME-Version: 1.0
  4. Content-Transfer-Encoding: 7bit
  5. X-Patchwork-Submitter: Landen Chao <[email protected]>
  6. X-Patchwork-Id: 1206964
  7. X-Patchwork-Delegate: [email protected]
  8. Return-Path: <[email protected]>
  9. X-Original-To: [email protected]
  10. Delivered-To: [email protected]
  11. Authentication-Results: ozlabs.org; spf=none (no SPF record)
  12. smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67;
  13. helo=vger.kernel.org;
  14. [email protected];
  15. receiver=<UNKNOWN>)
  16. Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none)
  17. header.from=mediatek.com
  18. Authentication-Results: ozlabs.org; dkim=pass (1024-bit key;
  19. unprotected) header.d=mediatek.com [email protected]
  20. header.b="eagJVm76"; dkim-atps=neutral
  21. Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
  22. by ozlabs.org (Postfix) with ESMTP id 47XCYF2fNjz9sR7
  23. for <[email protected]>;
  24. Tue, 10 Dec 2019 19:15:29 +1100 (AEDT)
  25. Received: ([email protected]) by vger.kernel.org via listexpand
  26. id S1727295AbfLJIP0 (ORCPT
  27. <rfc822;[email protected]>);
  28. Tue, 10 Dec 2019 03:15:26 -0500
  29. Received: from mailgw01.mediatek.com ([210.61.82.183]:21469 "EHLO
  30. mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by
  31. vger.kernel.org with ESMTP id S1726062AbfLJIO4 (ORCPT
  32. <rfc822;[email protected]>); Tue, 10 Dec 2019 03:14:56 -0500
  33. X-UUID: f9b456136baf42daba0957485d388010-20191210
  34. DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
  35. d=mediatek.com; s=dk;
  36. h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From;
  37. bh=BT+q/z4xoeKXCk+y25bvARvW/z0vRa1uB7kHqAjvpaw=;
  38. b=eagJVm76XNgnVVvxDHR4QtcIyynPPYY4k7twyvlRAQeSnsJbABh1afLK+LlxnJ0TM069F+hNNzWXq7ZGru/I+gYhmqZcYCt/SkEYgxdTb0VNE+DIW0hmNAOoJ0i23gobJ3xa7JVRfIfeZcbjwRJSuqwzLBRZBLIFzqSs71VZx1Y=;
  39. X-UUID: f9b456136baf42daba0957485d388010-20191210
  40. Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by
  41. mailgw01.mediatek.com (envelope-from <[email protected]>)
  42. (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS)
  43. with ESMTP id 1831961689; Tue, 10 Dec 2019 16:14:48 +0800
  44. Received: from mtkcas08.mediatek.inc (172.21.101.126) by
  45. mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server
  46. (TLS) id 15.0.1395.4; Tue, 10 Dec 2019 16:14:32 +0800
  47. Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc
  48. (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via
  49. Frontend Transport; Tue, 10 Dec 2019 16:14:27 +0800
  50. From: Landen Chao <[email protected]>
  51. To: <[email protected]>, <[email protected]>,
  52. <[email protected]>, <[email protected]>,
  53. <[email protected]>, <[email protected]>
  54. CC: <[email protected]>, <[email protected]>,
  55. <[email protected]>,
  56. <[email protected]>, <[email protected]>,
  57. <[email protected]>, <[email protected]>,
  58. <[email protected]>, Landen Chao <[email protected]>
  59. Subject: [PATCH net-next 6/6] arm64: dts: mt7622: add mt7531 dsa to
  60. bananapi-bpi-r64 board
  61. Date: Tue, 10 Dec 2019 16:14:42 +0800
  62. Message-ID: <62eef5503c117f48d4b41e94fd28d75e123590b4.1575914275.git.landen.chao@mediatek.com>
  63. X-Mailer: git-send-email 2.18.0
  64. In-Reply-To: <[email protected]>
  65. References: <[email protected]>
  66. MIME-Version: 1.0
  67. X-MTK: N
  68. Sender: [email protected]
  69. Precedence: bulk
  70. List-ID: <netdev.vger.kernel.org>
  71. X-Mailing-List: [email protected]
  72. Add mt7531 dsa to bananapi-bpi-r64 board for 5 giga Ethernet ports support.
  73. Signed-off-by: Landen Chao <[email protected]>
  74. ---
  75. .../dts/mediatek/mt7622-bananapi-bpi-r64.dts | 50 +++++++++++++++++++
  76. 1 file changed, 50 insertions(+)
  77. --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
  78. +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
  79. @@ -150,6 +150,56 @@
  80. mdio: mdio-bus {
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. +
  84. + switch@0 {
  85. + compatible = "mediatek,mt7531";
  86. + reg = <0>;
  87. + reset-gpios = <&pio 54 0>;
  88. +
  89. + ports {
  90. + #address-cells = <1>;
  91. + #size-cells = <0>;
  92. +
  93. + port@0 {
  94. + reg = <0>;
  95. + label = "wan";
  96. + };
  97. +
  98. + port@1 {
  99. + reg = <1>;
  100. + label = "lan0";
  101. + };
  102. +
  103. + port@2 {
  104. + reg = <2>;
  105. + label = "lan1";
  106. + };
  107. +
  108. + port@3 {
  109. + reg = <3>;
  110. + label = "lan2";
  111. + };
  112. +
  113. + port@4 {
  114. + reg = <4>;
  115. + label = "lan3";
  116. + };
  117. +
  118. + port@6 {
  119. + reg = <6>;
  120. + label = "cpu";
  121. + ethernet = <&gmac0>;
  122. + phy-mode = "2500base-x";
  123. +
  124. + fixed-link {
  125. + speed = <2500>;
  126. + full-duplex;
  127. + pause;
  128. + };
  129. + };
  130. + };
  131. + };
  132. +
  133. };
  134. };