openwrt/target/linux/mediatek
Jakub Vaněk b413363b47 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>
(cherry picked from commit 02f0efd60b)
2026-01-13 00:19:55 +01:00
..
base-files mediatek: fix IPv4 address missing on interface in failsafe mode for cudy ap3000-v1 2025-12-16 00:29:13 +01:00
dts mediatek: fix PHY autodetection on Cudy WR3000H 2026-01-13 00:19:55 +01:00
files/drivers treewide: fix coccinelle checks 2025-12-02 23:32:42 +01:00
files-6.12 treewide: dts: remove {#address,#size}-cells from "spi-nand" compatible node 2025-11-27 12:37:49 +01:00
filogic mediatek: add support for Routerich BE7200 2026-01-05 00:53:01 +01:00
image mediatek: add Motorcomm PHY driver to Cudy WR3000H 2026-01-13 00:19:54 +01:00
mt7622 mediatek: add basic support for the MT7987 SoC 2025-11-05 14:19:39 +00:00
mt7623 mediatek: add basic support for the MT7987 SoC 2025-11-05 14:19:39 +00:00
mt7629 mediatek: add basic support for the MT7987 SoC 2025-11-05 14:19:39 +00:00
patches-6.12 kernel: as21xxx: backport patch improve PHY HW reset 2026-01-05 00:23:00 +01:00
Makefile mediatek: switch to Linux 6.12 by default 2025-07-18 12:26:40 +01:00
modules.mk mediatek: build rtl8367s_gsw as a kernel module 2025-11-30 22:59:28 +01:00