LS1012A Single port pfe setting at LSDK

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

LS1012A Single port pfe setting at LSDK

Jump to solution
759 Views
JYK
Contributor I

Hi, I want to configure 1-port Ethernet for SGMII communication in LS1012A.

I used the DP8367 phy chip, and configured the PFE of ls1012afrwy.dts as below.

 

&pfe {
  status = "okay";
  #address-cells = <1>;
  #size-cells = <0>;
  
  pfe_mac0: ethernet@0 {
  compatible = "fsl,pfe-gemac-port";
  #address-cells = <1>;
  #size-cells = <0>;
  reg = <0x0>; /* GEM_ID */
  fsl,gemac-bus-id = <0x0>; /* BUS_ID */
  fsl,mdio-mux-val = <0x0>;
  phy-mode = "sgmii";
  phy-handle = <&sgmii_phy1>;
fsl,pfe-phy-if-flags = <0x0>;
  };
  /*pfe_mac1: ethernet@1 {
  compatible = "fsl,pfe-gemac-port";
  #address-cells = <1>;
  #size-cells = <0>;
 reg = <0x1>;
  fsl,mdio-mux-val = <0x0>;
  phy-mode = "sgmii";
  phy-handle = <&sgmii_phy2>;
  fsl,pfe-phy-if-flags = <0x1>;
  };*/
  mdio@0 {
  #address-cells = <1>;
  #size-cells = <0>;
 
  sgmii_phy1: ethernet-phy@2 {
  reg = <0x0>;
  ti,rx-internal-delay = <0x7>;
  ti,tx-internal-delay = <0x7>;
  ti,fifo-depth = <0x1>;
  };
  /*sgmii_phy2: ethernet-phy@1 {
  reg = <0x1>;
  ti,rx-internal-delay = <0x7>;
  ti,tx-internal-delay = <0x7>;
  ti,fifo-depth = <0x1>;
};*/
};
};
 
However, it seems that the rx packets of eth0 are not being received.
스크린샷 2025-07-24 114257.png
 
I'd appreciate it if you could let me know if there's anything else I need to set up.
0 Kudos
Reply
1 Solution
692 Views
yipingwang
NXP TechSupport
NXP TechSupport

Do you use PHY DP83867? If yes, please configure CONFIG_DP83867_PHY in Linux Kernel configuration file.

In dts file, please replace reg value with your real PHY address on you custom board.

  sgmii_phy1: ethernet-phy@2 {
  reg = <0x0>;///please modify the PHY address with the real PHY address on your custom
  ti,rx-internal-delay = <0x7>;
  ti,tx-internal-delay = <0x7>;
  ti,fifo-depth = <0x1>;
  };

View solution in original post

0 Kudos
Reply
2 Replies
693 Views
yipingwang
NXP TechSupport
NXP TechSupport

Do you use PHY DP83867? If yes, please configure CONFIG_DP83867_PHY in Linux Kernel configuration file.

In dts file, please replace reg value with your real PHY address on you custom board.

  sgmii_phy1: ethernet-phy@2 {
  reg = <0x0>;///please modify the PHY address with the real PHY address on your custom
  ti,rx-internal-delay = <0x7>;
  ti,tx-internal-delay = <0x7>;
  ti,fifo-depth = <0x1>;
  };
0 Kudos
Reply
688 Views
JYK
Contributor I

Thanks, I solved the problem that way. But I have another problem, so I would appreciate it if you could also answer the link below.

 

In LS1012A, reboot in the kernel and RESET on the physical switch do not work well - NXP Community

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2140717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELS1012A%20Single%20port%20pfe%20setting%20at%20LSDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3BI%20want%20to%20configure%201-port%20Ethernet%20for%20SGMII%20communication%20in%20LS1012A.%3C%2FP%3E%3CP%3EI%20used%20the%20DP8367%20phy%20chip%2C%20and%20configured%20the%20PFE%20of%20ls1012afrwy.dts%20as%20below.%3C%2FP%3E%3CBR%20%2F%3E%3CDIV%3E%26amp%3Bpfe%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20status%20%3D%20%22okay%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20pfe_mac0%3A%20ethernet%400%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20compatible%20%3D%20%22fsl%2Cpfe-gemac-port%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20reg%20%3D%20%26lt%3B0x0%26gt%3B%3B%20%2F*%20GEM_ID%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20fsl%2Cgemac-bus-id%20%3D%20%26lt%3B0x0%26gt%3B%3B%20%2F*%20BUS_ID%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20fsl%2Cmdio-mux-val%20%3D%20%26lt%3B0x0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20phy-mode%20%3D%20%22sgmii%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20phy-handle%20%3D%20%26lt%3B%26amp%3Bsgmii_phy1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Efsl%2Cpfe-phy-if-flags%20%3D%20%26lt%3B0x0%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%2F*pfe_mac1%3A%20ethernet%401%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20compatible%20%3D%20%22fsl%2Cpfe-gemac-port%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3Breg%20%3D%20%26lt%3B0x1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20fsl%2Cmdio-mux-val%20%3D%20%26lt%3B0x0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20phy-mode%20%3D%20%22sgmii%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20phy-handle%20%3D%20%26lt%3B%26amp%3Bsgmii_phy2%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20fsl%2Cpfe-phy-if-flags%20%3D%20%26lt%3B0x1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7D%3B*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20mdio%400%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20sgmii_phy1%3A%20ethernet-phy%402%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20reg%20%3D%20%26lt%3B0x0%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20ti%2Crx-internal-delay%20%3D%20%26lt%3B0x7%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20ti%2Ctx-internal-delay%20%3D%20%26lt%3B0x7%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20ti%2Cfifo-depth%20%3D%20%26lt%3B0x1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%2F*sgmii_phy2%3A%20ethernet-phy%401%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20reg%20%3D%20%26lt%3B0x1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20ti%2Crx-internal-delay%20%3D%20%26lt%3B0x7%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20ti%2Ctx-internal-delay%20%3D%20%26lt%3B0x7%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20ti%2Cfifo-depth%20%3D%20%26lt%3B0x1%26gt%3B%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B*%2F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%7D%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EHowever%2C%20it%20seems%20that%20the%20rx%20packets%20of%20eth0%20are%20not%20being%20received.%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202025-07-24%20114257.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202025-07-24%20114257.png%22%20style%3D%22width%3A%20150px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349482iAB61B1BD7B8404F2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202025-07-24%20114257.png%22%20alt%3D%22%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202025-07-24%20114257.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI'd%20appreciate%20it%20if%20you%20could%20let%20me%20know%20if%20there's%20anything%20else%20I%20need%20to%20set%20up.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1012A%20Single%20port%20pfe%20setting%20at%20LSDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%2C%20I%20solved%20the%20problem%20that%20way.%20But%20I%20have%20another%20problem%2C%20so%20I%20would%20appreciate%20it%20if%20you%20could%20also%20answer%20the%20link%20below.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape%2FIn-LS1012A-reboot-in-the-kernel-and-RESET-on-the-physical-switch%2Fm-p%2F2143331%23M15957%22%20target%3D%22_blank%22%3EIn%20LS1012A%2C%20reboot%20in%20the%20kernel%20and%20RESET%20on%20the%20physical%20switch%20do%20not%20work%20well%20-%20NXP%20Community%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143316%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1012A%20Single%20port%20pfe%20setting%20at%20LSDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143316%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDo%20you%20use%20PHY%26nbsp%3BDP83867%3F%20If%20yes%2C%20please%20configure%26nbsp%3BCONFIG_DP83867_PHY%20in%20Linux%20Kernel%20configuration%20file.%3C%2FP%3E%0A%3CP%3EIn%20dts%20file%2C%20please%20replace%20reg%20value%20with%20your%20real%20PHY%20address%20on%20you%20custom%20board.%3C%2FP%3E%0A%3CDIV%3E%26nbsp%3B%20sgmii_phy1%3A%20ethernet-phy%402%20%7B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%20reg%20%3D%20%26lt%3B0x0%26gt%3B%3B%2F%2F%3CSPAN%20data-teams%3D%22true%22%3E%3CSTRONG%3E%2Fplease%20modify%20the%20PHY%20address%20with%20the%20real%20PHY%20address%20on%20your%20custom%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%20ti%2Crx-internal-delay%20%3D%20%26lt%3B0x7%26gt%3B%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%20ti%2Ctx-internal-delay%20%3D%20%26lt%3B0x7%26gt%3B%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%20ti%2Cfifo-depth%20%3D%20%26lt%3B0x1%26gt%3B%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E