Thread (10 messages) flat view 10 messages, 4 authors, 2025-09-03

Re: [PATCH] ARM: dts: imx6ul-tx6ul: Switch away from deprecated `phy-reset-gpios`

From: Csókás Bence <hidden>
Date: 2025-09-03 07:57:27
Also in: imx, linux-devicetree, lkml

Hi,

On 2025. 09. 03. 9:50, Ahmad Fatoum wrote:
Hi,

On 03.09.25 09:43, Csókás Bence wrote:
quoted
Hi,

On 2025. 09. 03. 9:28, Ahmad Fatoum wrote:
quoted
Hello,

On 15.08.25 17:17, Bence Csókás wrote:
quoted
The Ethernet PHY's reset GPIO should be specified in the node of the PHY
itself, instead of the MAC (`fec`). The latter is deprecated, and was an
i.MX-specific extension, incompatible with the new reset controller
subsystem.
One reason to do it this way is that the PHY is in reset when the OS starts
and the external phy-reset-gpios allows MAC probe to get the PHY out of
reset, so it can be probed after reading its vendor/device IDs.

Does switching to this new binding address this scenario? If so, it should
be noted in the commit message.
Yes, but after it has been reset, if the platform supports Power Management, the PHY's clock will be turned off, which some PHYs (in our case the LAN8710) don't tolerate. This has been reported many times, just search LKML for "lan8710 reset".

So we want a more general solution [1] where the PHY subsystem resets them before enumerating. However, if the MAC driver claims the GPIO, then it can't be used by the PHY.
I agree that it makes sense for a PHY reset to be associated with the PHY
device and controlled by the PHY driver. I am wary of regressions though,
which is why I wanted the commit message to clearly spell out the implications.
You're right. We'll put this all in the message.
quoted
I will clarify the commit msg with this in mind.
Thanks.
quoted
[1] https://lore.kernel.org/lkml/20250709133222.48802-4-buday.csaba@prolan.hu/ (local)
Is this mainline yet?
Unfortunately, no. It apparently still needs some polish.

Bence

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help