imx8mp-WOL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mp-WOL

759 Views
shivashanka141
Contributor I

Hi Nxp,

We are using imx8mp based SOC.

our BSP is based on kirkstone branch.

We have ethernet connected to eqos -> dp83867 & ethenet is functional.

WOL functionality is wokring fine. we are able to resume from suspend 

imx8mp :
# ethtool -s eth1 wol g
#systemctl suspend

from any other machine in LAN we are able to trigger WOL packet
#wakeonlan <ethernet mac address >

after resuming from suspend ethernet was not functional found IP was not assiged to the phy.

DTS: 

&eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <&dp83867_1>;
snps,force_thresh_dma_mode;
snps,mtl-tx-config = <&mtl_tx_setup>;
snps,mtl-rx-config = <&mtl_rx_setup>;
status = "okay";
 
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
/* TODO : RESET needed
* TODO : IRQ   needed
*/
dp83867_1: ethernet-phy@0 {
/* RGMII-1 */
compatible = "ethernet-phy-id2000.a231"; 
reg = <0>;
 
ti,rx-internal-delay = <DP83867_RGMIIDCTL_1_75_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_1_75_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
 
ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
 
interrupt-parent = <&gpio4>;
interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
reset-gpio = <&gpio4 22 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <80000>;
};
};

After resuming from wake on lan IP is not assigned to phy.

Attached log for refernce.

IMX8MPLUS 
0 Kudos
Reply
1 Reply

732 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Make sure that phy0 is the one as you can check the RGMII as phymode the Ethernet MAC controller node to which the PHY is connected. The phy-handle property links the controller to its corresponding PHY node.

 

Regards

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2190782%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimx8mp-WOL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190782%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Nxp%2C%3C%2FP%3E%3CP%3EWe%20are%20using%20imx8mp%20based%20SOC.%3C%2FP%3E%3CP%3Eour%20BSP%20is%20based%20on%26nbsp%3B%3CSPAN%3Ekirkstone%20branch.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWe%20have%20ethernet%20connected%20to%20eqos%20-%26gt%3B%20dp83867%20%26amp%3B%20ethenet%20is%20functional.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWOL%20functionality%20is%20wokring%20fine.%20we%20are%20able%20to%20resume%20from%20suspend%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eimx8mp%20%3A%3CBR%20%2F%3E%23%26nbsp%3Bethtool%20-s%20eth1%20wol%20g%3CBR%20%2F%3E%23systemctl%20suspend%3CBR%20%2F%3E%3CBR%20%2F%3Efrom%20any%20other%20machine%20in%20LAN%20we%20are%20able%20to%20trigger%20WOL%20packet%3CBR%20%2F%3E%23wakeonlan%20%3CETHERNET%20mac%3D%22%22%20address%3D%22%22%3E%3CBR%20%2F%3E%3CBR%20%2F%3Eafter%20resuming%20from%20suspend%20ethernet%20was%20not%20functional%20found%20IP%20was%20not%20assiged%20to%20the%20phy.%3CBR%20%2F%3E%3CBR%20%2F%3EDTS%3A%26nbsp%3B%3C%2FETHERNET%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%26amp%3Beqos%20%7B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Epinctrl-names%20%3D%20%22default%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Epinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_eqos%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ephy-mode%20%3D%20%22rgmii-id%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ephy-handle%20%3D%20%26lt%3B%26amp%3Bdp83867_1%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Esnps%2Cforce_thresh_dma_mode%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Esnps%2Cmtl-tx-config%20%3D%20%26lt%3B%26amp%3Bmtl_tx_setup%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Esnps%2Cmtl-rx-config%20%3D%20%26lt%3B%26amp%3Bmtl_rx_setup%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Estatus%20%3D%20%22okay%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Emdio%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ecompatible%20%3D%20%22snps%2Cdwmac-mdio%22%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%2F*%20TODO%20%3A%20RESET%20needed%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E*%20TODO%20%3A%20IRQ%26nbsp%3B%20%26nbsp%3Bneeded%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E*%2F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Edp83867_1%3A%20ethernet-phy%400%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%2F*%20RGMII-1%20*%2F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ecompatible%20%3D%20%22ethernet-phy-id2000.a231%22%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ereg%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eti%2Crx-internal-delay%20%3D%20%3CDP83867_RGMIIDCTL_1_75_NS%3E%3B%3C%2FDP83867_RGMIIDCTL_1_75_NS%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eti%2Ctx-internal-delay%20%3D%20%3CDP83867_RGMIIDCTL_1_75_NS%3E%3B%3C%2FDP83867_RGMIIDCTL_1_75_NS%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eti%2Cfifo-depth%20%3D%20%3CDP83867_PHYCR_FIFO_DEPTH_4_B_NIB%3E%3B%3C%2FDP83867_PHYCR_FIFO_DEPTH_4_B_NIB%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eti%2Cmin-output-impedance%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eti%2Cdp83867-rxctrl-strap-quirk%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Einterrupt-parent%20%3D%20%26lt%3B%26amp%3Bgpio4%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Einterrupts%20%3D%20%26lt%3B21%20IRQ_TYPE_EDGE_FALLING%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ereset-gpio%20%3D%20%26lt%3B%26amp%3Bgpio4%2022%20GPIO_ACTIVE_LOW%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ereset-assert-us%20%3D%20%26lt%3B10000%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ereset-deassert-us%20%3D%20%26lt%3B80000%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EAfter%20resuming%20from%20wake%20on%20lan%20IP%20is%20not%20assigned%20to%20phy.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EAttached%20log%20for%20refernce.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FIMX8MPLUS%2Fpd-p%2FIMX8MPLUS%22%20class%3D%22lia-product-mention%22%20data-product%3D%2221-1%22%20target%3D%22_blank%22%3EIMX8MPLUS%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2190782%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190904%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp-WOL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190904%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EMake%20sure%20that%20phy0%20is%20the%20one%20as%20you%20can%20check%20the%20RGMII%20as%20phymode%20t%3CSPAN%20class%3D%22T286Pc%22%20data-sfc-cp%3D%22%22%20data-processed%3D%22true%22%3Ehe%20Ethernet%20MAC%20controller%20node%20to%20which%20the%20PHY%20is%20connected.%20The%20%3CCODE%20class%3D%22o8j0Mc%22%20dir%3D%22ltr%22%20data-processed%3D%22true%22%3Ephy-handle%3C%2FCODE%3E%20property%20links%20the%20controller%20to%20its%20corresponding%20PHY%20node.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22T286Pc%22%20data-sfc-cp%3D%22%22%20data-processed%3D%22true%22%3ERegards%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E