[PATCH net-next 1/4] dt-bindings: net: document st,phy-wol property
Gatien CHEVALLIER
gatien.chevallier at foss.st.com
Tue Jul 22 02:10:39 PDT 2025
On 7/22/25 09:32, Russell King (Oracle) wrote:
> On Mon, Jul 21, 2025 at 05:56:17PM +0200, Gatien CHEVALLIER wrote:
>> Here's an extract from the Microchip datasheet for the LAN8742A PHY:
>>
>> "In addition to the main interrupts described in this section, an nPME
>> pin is provided exclusively for WoL specific interrupts."
>
> So the pin on the PHY for WoL is called nPME? If this pin isn't wired
> to an interrupt controller, then the PHY doesn't support WoL. If it is
> wired, then could it be inferred that WoL is supported?
>
For this PHY yes, but it's a bit more tricky. In my response to Andrew,
I added a bit more information.
> If so, then it seems to me the simple solution here is for the PHY
> driver to say "if the nPME pin is connected to an interrupt controller,
> then PHY-side WoL is supported, otherwise PHY-side WoL is not
> supported".
>
If there's a proper way to do this, sure!
> Then, I wonder if the detection of the WoL capabilities of the PHY
> in stmmac_init_phy() could be used to determine whether PHY WoL
> should be used or not.
>
Yes, sure.
Best regards,
Gatien
More information about the linux-arm-kernel
mailing list