openwrt/target/linux/mediatek
Jakub Vaněk bed6f08c36
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
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
(cherry picked from commit 02f0efd60b)
Signed-off-by: Jakub Vaněk <linuxtardis@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21531
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-02-07 16:33:07 +01:00
..
base-files mediatek: fix IPv4 address missing on interface in failsafe mode for cudy ap3000-v1 2025-12-16 00:29:58 +01:00
dts mediatek: fix PHY autodetection on Cudy WR3000H 2026-02-07 16:33:07 +01:00
files/drivers mediatek: Remove modules.builtin file 2025-08-24 15:30:57 +02:00
files-6.6 mediatek: add Airoha AN8855 gigabit switch driver 2025-01-23 15:28:08 +01:00
filogic mediatek/filogic: fix Totolink X6000R sysupgrade failed 2025-12-14 22:51:17 +01:00
image mediatek: add Motorcomm PHY driver to Cudy WR3000H 2026-02-07 16:33:07 +01:00
mt7622 mediatek: Refresh kernel configuration 2025-03-08 17:04:20 +01:00
mt7623 mediatek: Refresh kernel configuration 2025-03-08 17:04:20 +01:00
mt7629 mediatek: Refresh kernel configuration 2025-03-08 17:04:20 +01:00
patches-6.6 kernel: bump 6.6 to 6.6.120 2026-01-19 01:14:52 +01:00
Makefile mediatek: change the the default SUBTARGET to filogic 2024-10-02 15:12:18 +02:00
modules.mk mediatek: mt7623: build mt6577_auxadc driver into kernel 2022-12-05 23:14:36 +00:00