ramips: mt7621-dts: fix phy-mode of external phy on GB-PC2
authorArınç ÜNAL <arinc.unal@arinc9.com>
Mon, 28 Nov 2022 21:33:37 +0000 (00:33 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 3 Feb 2023 13:11:19 +0000 (14:11 +0100)
The phy-mode property must be defined on the MAC instead of the PHY. Define
phy-mode under gmac1 which the external phy is connected to.

Tested-by: Petr Louda <petr.louda@outlook.cz>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts

index 6199511cff8359b924cdcc9ea28a8c36d80a8f46..c18f10250226de57e50fe13491aa1e9bb81021f0 100644 (file)
 &gmac1 {
        status = "okay";
        label = "ethyellow";
+       phy-mode = "rgmii-rxid";
        phy-handle = <&ethphy5>;
 
        nvmem-cells = <&macaddr_factory_e000>;
 &mdio {
        ethphy5: ethernet-phy@5 {
                reg = <5>;
-               phy-mode = "rgmii-rxid";
        };
 };