diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-11-02 04:03:15 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-12-26 19:11:54 +0000 |
commit | 8b6d6f28c1025a710f44621e397d093dbef4fd3a (patch) | |
tree | ad0bc0e78ee739332c4b5da73488647958e6bb68 | |
parent | e6c08c8272e147cfab04642d7daa0dfff1df9d3f (diff) | |
download | upstream-8b6d6f28c1025a710f44621e397d093dbef4fd3a.tar.gz upstream-8b6d6f28c1025a710f44621e397d093dbef4fd3a.tar.bz2 upstream-8b6d6f28c1025a710f44621e397d093dbef4fd3a.zip |
mediatek: mt7622: unifi6lr: properly register Ethernet PHY
This change enables proper Ethernet link status and speed reporting on
the Ubiquiti UniFi 6 LR access point:
mtk_soc_eth 1b100000.ethernet eth0: PHY [mdio-bus:08] driver [Aquantia AQR112C] (irq=POLL)
mtk_soc_eth 1b100000.ethernet eth0: configuring for phy/2500base-x link mode
mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r-- | target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi index 31d274a5d6..ae587a11a0 100644 --- a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi +++ b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dtsi @@ -161,21 +161,17 @@ reg = <0>; phy-mode = "2500base-x"; - - fixed-link { - speed = <2500>; - full-duplex; - }; + phy-handle = <&phy0>; + phy-connection-type = "2500base-x"; }; mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - ethernet-phy@7 { - /* Marvell AQRate AQR112W - no driver */ + phy0: ethernet-phy@8 { compatible = "ethernet-phy-ieee802.3-c45"; - reg = <0x7>; + reg = <0x8>; }; }; }; |