Skip to content

Commit c180446

Browse files
frank-wkuba-moo
authored andcommitted
arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board
Add Device Tree node for mt7531 switch connected to gmac0. Signed-off-by: Frank Wunderlich <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ae07485 commit c180446

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,54 @@
394394
status = "disabled";
395395
};
396396

397+
&mdio0 {
398+
#address-cells = <1>;
399+
#size-cells = <0>;
400+
401+
switch@0 {
402+
compatible = "mediatek,mt7531";
403+
reg = <0>;
404+
405+
ports {
406+
#address-cells = <1>;
407+
#size-cells = <0>;
408+
409+
port@1 {
410+
reg = <1>;
411+
label = "lan0";
412+
};
413+
414+
port@2 {
415+
reg = <2>;
416+
label = "lan1";
417+
};
418+
419+
port@3 {
420+
reg = <3>;
421+
label = "lan2";
422+
};
423+
424+
port@4 {
425+
reg = <4>;
426+
label = "lan3";
427+
};
428+
429+
port@5 {
430+
reg = <5>;
431+
label = "cpu";
432+
ethernet = <&gmac0>;
433+
phy-mode = "rgmii";
434+
435+
fixed-link {
436+
speed = <1000>;
437+
full-duplex;
438+
pause;
439+
};
440+
};
441+
};
442+
};
443+
};
444+
397445
&mdio1 {
398446
rgmii_phy1: ethernet-phy@0 {
399447
compatible = "ethernet-phy-ieee802.3-c22";

0 commit comments

Comments
 (0)