8c3fe5208903126042ecba6292da9282d4b71b7b
[openwrt/staging/xback.git] /
1 From: Landen Chao <landen.chao@mediatek.com>
2 Subject: [PATCH net-next 6/6] arm64: dts: mt7622: add mt7531 dsa to
3 bananapi-bpi-r64 board
4 Date: Tue, 10 Dec 2019 16:14:42 +0800
5
6 Add mt7531 dsa to bananapi-bpi-r64 board for 5 giga Ethernet ports support.
7
8 Signed-off-by: Landen Chao <landen.chao@mediatek.com>
9 ---
10 .../dts/mediatek/mt7622-bananapi-bpi-r64.dts | 50 +++++++++++++++++++
11 1 file changed, 50 insertions(+)
12
13 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
14 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
15 @@ -150,6 +150,56 @@
16 mdio: mdio-bus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19 +
20 + switch@0 {
21 + compatible = "mediatek,mt7531";
22 + reg = <0>;
23 + reset-gpios = <&pio 54 0>;
24 +
25 + ports {
26 + #address-cells = <1>;
27 + #size-cells = <0>;
28 +
29 + port@0 {
30 + reg = <0>;
31 + label = "wan";
32 + };
33 +
34 + port@1 {
35 + reg = <1>;
36 + label = "lan0";
37 + };
38 +
39 + port@2 {
40 + reg = <2>;
41 + label = "lan1";
42 + };
43 +
44 + port@3 {
45 + reg = <3>;
46 + label = "lan2";
47 + };
48 +
49 + port@4 {
50 + reg = <4>;
51 + label = "lan3";
52 + };
53 +
54 + port@6 {
55 + reg = <6>;
56 + label = "cpu";
57 + ethernet = <&gmac0>;
58 + phy-mode = "2500base-x";
59 +
60 + fixed-link {
61 + speed = <2500>;
62 + full-duplex;
63 + pause;
64 + };
65 + };
66 + };
67 + };
68 +
69 };
70 };
71