]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mediatek: fix PHY autodetection on Cudy WR3000H 21399/head
authorJakub Vaněk <linuxtardis@gmail.com>
Sun, 4 Jan 2026 23:10:46 +0000 (00:10 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 12 Jan 2026 23:18:04 +0000 (00:18 +0100)
commit02f0efd60b423b4ce9b996f7c986dd68965a50d4
tree1532c4f924456557464de1dc234aa1affe696c8c
parentdbafbab8769b92c8466ea83400280b4f549ace71
mediatek: fix PHY autodetection on Cudy WR3000H

Newer Cudy WR3000H units have a Motorcomm YT8821 PHY instead of a
Realtek PHY on the WAN port. Before this commit, the Motorcomm PHY
could not be autodetected by the kernel -- the PHY would show up as
just a generic clause 45 PHY and the proper driver would not be loaded.

The cause of the detection failure likely was that the YT8821 PHY was
held in reset during PHY detection. To fix this, move the reset GPIO
definition to the MDIO bus level. This reset line is deasserted before
the autodetection process, see also [1]. With this change, both Realtek
and Motorcomm PHYs can be supported with a single device tree.

[1]: https://lore.kernel.org/all/20251119134750.394655-1-horatiu.vultur@microchip.com/

Signed-off-by: Jakub Vaněk <linuxtardis@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21399
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/dts/mt7981b-cudy-wr3000h-v1.dts