staging: mt7621-dts: use trgmii on gmac0 and enable flow control on port@6
authorArınç ÜNAL <arinc.unal@arinc9.com>
Tue, 25 Jan 2022 15:39:02 +0000 (18:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 12:03:47 +0000 (13:03 +0100)
Change phy-mode of gmac0 to trgmii to match the other side, port@6.

Flow control needs to be enabled on both sides to work.
It is already enabled on gmac0, enable it on port@6 too.

Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20220125153903.1469-4-arinc.unal@arinc9.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-dts/mt7621.dtsi

index 35f19d6..489754f 100644 (file)
                gmac0: mac@0 {
                        compatible = "mediatek,eth-mac";
                        reg = <0>;
-                       phy-mode = "rgmii";
+                       phy-mode = "trgmii";
 
                        fixed-link {
                                speed = <1000>;
                                                fixed-link {
                                                        speed = <1000>;
                                                        full-duplex;
+                                                       pause;
                                                };
                                        };
                                };