Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: microchip: lan966x: Fix the access to the PHYs for pcb8290

The problem is that the MDIO controller can't detect any of the PHYs.
The reason is that the lan966x is not pulling high the GPIO 53 that is
connected to the PHYs reset GPIO. Without doing this the PHYs are kept
in reset. The mdio controller framework has the possibility to control a
GPIO to release the reset of the PHYs. So take advantage of this and set
line to be high before accessing the PHYs.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20251119134750.394655-1-horatiu.vultur@microchip.com
[claudiu.beznea: add microchip in patch title, s/possiblity/possibility
in patch description]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>

authored by

Horatiu Vultur and committed by
Claudiu Beznea
d1a6f125 8f0b4cce

+1
+1
arch/arm/boot/dts/microchip/lan966x-pcb8290.dts
··· 54 54 &mdio0 { 55 55 pinctrl-0 = <&miim_a_pins>; 56 56 pinctrl-names = "default"; 57 + reset-gpios = <&gpio 53 GPIO_ACTIVE_LOW>; 57 58 status = "okay"; 58 59 59 60 ext_phy0: ethernet-phy@7 {