Hello, I need to configure the DP83826 PHY in a device tree (DT) to use the WoL interrupt signal as a wakeup-source
in suspend-to-RAM power mode (mem state) for an embedded Linux system.
I have seen that the Linux device driver developed by TI supports this feature, but I did not manage to make it work.
This is my current PHY node in the DT:&mdio0 { #address-cells = <1>; #size-cells = <0>; dp83826: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x0>; interrupt-parent = <&gpio0>; interrupts = <RK_PD3 IRQ_TYPE_EDGE_FALLING>; pinctrl-names = "default"; pinctrl-0 = <ð_wake_intn ð_phy_rstn>; reset-assert-us = <1000>; reset-deassert-us = <2000>; reset-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_LOW>; wakeup-source; }; };
where the RK_PD3 is defined as a GPIO.
I can wake up the system in "freeze" power state (the simple software power state) with a WoL-packet,
but that does not work in suspend-to-RAM because the interrupt pin does not toggle
when the PHY receives a WoL-packet. That means that the PHY reacts to the packet, but does not
generate the interrupt as expected. Therefore I just need to configure the PHY properly through its
device driver, but my DT node does not seem to be enough.
Thank you and best regards.