a4899caee53b0fca2a043ab0b7c42df41b77c9c7
[oweals/openwrt.git] /
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 <landen.chao@mediatek.com>
6 X-Patchwork-Id: 1206964
7 X-Patchwork-Delegate: davem@davemloft.net
8 Return-Path: <netdev-owner@vger.kernel.org>
9 X-Original-To: patchwork-incoming-netdev@ozlabs.org
10 Delivered-To: patchwork-incoming-netdev@ozlabs.org
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  envelope-from=netdev-owner@vger.kernel.org;
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 header.i=@mediatek.com
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 <patchwork-incoming-netdev@ozlabs.org>;
24  Tue, 10 Dec 2019 19:15:29 +1100 (AEDT)
25 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
26  id S1727295AbfLJIP0 (ORCPT
27  <rfc822;patchwork-incoming-netdev@ozlabs.org>);
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;netdev@vger.kernel.org>); 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 <landen.chao@mediatek.com>)
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 <landen.chao@mediatek.com>
51 To: <andrew@lunn.ch>, <f.fainelli@gmail.com>,
52  <vivien.didelot@savoirfairelinux.com>, <matthias.bgg@gmail.com>,
53  <robh+dt@kernel.org>, <mark.rutland@arm.com>
54 CC: <devicetree@vger.kernel.org>, <netdev@vger.kernel.org>,
55  <linux-kernel@vger.kernel.org>,
56  <linux-mediatek@lists.infradead.org>, <davem@davemloft.net>,
57  <sean.wang@mediatek.com>, <opensource@vdorst.com>,
58  <frank-w@public-files.de>, Landen Chao <landen.chao@mediatek.com>
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: <cover.1575914275.git.landen.chao@mediatek.com>
65 References: <cover.1575914275.git.landen.chao@mediatek.com>
66 MIME-Version: 1.0
67 X-MTK: N
68 Sender: netdev-owner@vger.kernel.org
69 Precedence: bulk
70 List-ID: <netdev.vger.kernel.org>
71 X-Mailing-List: netdev@vger.kernel.org
72
73 Add mt7531 dsa to bananapi-bpi-r64 board for 5 giga Ethernet ports support.
74
75 Signed-off-by: Landen Chao <landen.chao@mediatek.com>
76 ---
77  .../dts/mediatek/mt7622-bananapi-bpi-r64.dts  | 50 +++++++++++++++++++
78  1 file changed, 50 insertions(+)
79
80 diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts\r
81 index 83e10591e0e5..ffacefee8e2a 100644\r
82 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts\r
83 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts\r
84 @@ -143,6 +143,56 @@\r
85         mdio: mdio-bus {\r
86                 #address-cells = <1>;\r
87                 #size-cells = <0>;\r
88 +\r
89 +               switch@0 {\r
90 +                       compatible = "mediatek,mt7531";\r
91 +                       reg = <0>;\r
92 +                       reset-gpios = <&pio 54 0>;\r
93 +\r
94 +                       ports {\r
95 +                               #address-cells = <1>;\r
96 +                               #size-cells = <0>;\r
97 +\r
98 +                               port@0 {\r
99 +                                       reg = <0>;\r
100 +                                       label = "wan";\r
101 +                               };\r
102 +\r
103 +                               port@1 {\r
104 +                                       reg = <1>;\r
105 +                                       label = "lan0";\r
106 +                               };\r
107 +\r
108 +                               port@2 {\r
109 +                                       reg = <2>;\r
110 +                                       label = "lan1";\r
111 +                               };\r
112 +\r
113 +                               port@3 {\r
114 +                                       reg = <3>;\r
115 +                                       label = "lan2";\r
116 +                               };\r
117 +\r
118 +                               port@4 {\r
119 +                                       reg = <4>;\r
120 +                                       label = "lan3";\r
121 +                               };\r
122 +\r
123 +                               port@6 {\r
124 +                                       reg = <6>;\r
125 +                                       label = "cpu";\r
126 +                                       ethernet = <&gmac0>;\r
127 +                                       phy-mode = "2500base-x";\r
128 +\r
129 +                                       fixed-link {\r
130 +                                               speed = <2500>;\r
131 +                                               full-duplex;\r
132 +                                               pause;\r
133 +                                       };\r
134 +                               };\r
135 +                       };\r
136 +               };\r
137 +\r
138         };\r
139  };\r
140  \r