forcing the vid/pid of the phy gets the port to work
&mdio {
reset-delay-us = <1500000>;
reset-post-delay-us = <1000000>;
phy5: phy@5 {
reg = <5>;
compatible = "ethernet-phy-id67c9.de0a"";
reset-gpios = <&pio 6 1>;
reset-deassert-us = <20000>;
};
phy6: phy@6 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
};
switch: switch@1f {
compatible = "mediatek,mt7531";
reg = <31>;
reset-gpios = <&pio 5 0>;
};
};
Init
[ 1.548790] mt7530-mdio mdio-bus:1f: no interrupt support
[ 1.620325] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[ 1.629276] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 1.640008] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.662083] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.683898] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.705711] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.727516] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.778455] mt7530-mdio mdio-bus:1f lan6 (uninitialized): PHY [mdio-bus:05] driver [Maxlinear Ethernet GPY211C] (irq=POLL)
[ 1.789897] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[ 21.890594] mt7530-mdio mdio-bus:1f lan6: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 21.890613] br-lan: port 5(lan6) entered blocking state
[ 21.903889] br-lan: port 5(lan6) entered forwarding state
I know this isnt something that should be needed, but im unsure as to what is stopping the auto detection from working