]> git.itanic.dy.fi Git - linux-stable/commitdiff
mips: dts: ralink: mt7621: mux phy4 to gmac1 for GB-PC1
authorArınç ÜNAL <arinc.unal@arinc9.com>
Mon, 11 Apr 2022 11:20:48 +0000 (14:20 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 27 Apr 2022 08:43:59 +0000 (10:43 +0200)
Mux the MT7530 switch's phy4 to the SoC's gmac1 on the GB-PC1 devicetree.
This achieves 2 Gbps total bandwidth to the CPU using the second RGMII.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts

index db961d61cfdedef0387dc0123d4e428c1391dd45..8e5a06080ad4e9c6a964aff5deff0c89a07f41fd 100644 (file)
@@ -103,14 +103,21 @@ &pinctrl {
 
        state_default: state-default {
                gpio-pinmux {
-                       groups = "rgmii2", "uart3", "wdt";
+                       groups = "uart3", "wdt";
                        function = "gpio";
                };
        };
 };
 
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+&gmac1 {
+       status = "okay";
+       phy-handle = <&ethphy4>;
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
 };
 
 &switch0 {
@@ -119,10 +126,5 @@ port@0 {
                        status = "okay";
                        label = "ethblack";
                };
-
-               port@4 {
-                       status = "okay";
-                       label = "ethblue";
-               };
        };
 };