8919ad27e06d7e6accf3612dba1201b99f41c0c0
[openwrt/staging/aparcar.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 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
81 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
82 @@ -150,6 +150,56 @@
83 mdio: mdio-bus {
84 #address-cells = <1>;
85 #size-cells = <0>;
86 +
87 + switch@0 {
88 + compatible = "mediatek,mt7531";
89 + reg = <0>;
90 + reset-gpios = <&pio 54 0>;
91 +
92 + ports {
93 + #address-cells = <1>;
94 + #size-cells = <0>;
95 +
96 + port@0 {
97 + reg = <0>;
98 + label = "wan";
99 + };
100 +
101 + port@1 {
102 + reg = <1>;
103 + label = "lan0";
104 + };
105 +
106 + port@2 {
107 + reg = <2>;
108 + label = "lan1";
109 + };
110 +
111 + port@3 {
112 + reg = <3>;
113 + label = "lan2";
114 + };
115 +
116 + port@4 {
117 + reg = <4>;
118 + label = "lan3";
119 + };
120 +
121 + port@6 {
122 + reg = <6>;
123 + label = "cpu";
124 + ethernet = <&gmac0>;
125 + phy-mode = "2500base-x";
126 +
127 + fixed-link {
128 + speed = <2500>;
129 + full-duplex;
130 + pause;
131 + };
132 + };
133 + };
134 + };
135 +
136 };
137 };
138