在 LSDK 设置 LS1012A 单端口 pfe 你好,我想在 LS1012A 中为 SGMII 通信配置 1 端口以太网。 我使用了 DP8367 phy 芯片,并对 ls1012afrwy.dts 的 PFE 进行了如下配置。 &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-总线-id = <0x0>; /* 总线_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> ; };*/ }; }; 但是,似乎无法接收到 eth0 的 rx 数据包。 如果你能告诉我还有什么需要设置的,我将不胜感激。 Re: LS1012A Single port pfe setting at LSDK 谢谢,我用这种方法解决了问题。但我还有一个问题,如果您也能回答下面的链接,我将不胜感激。 在 LS1012A 中,在内核中重启并在物理交换机上 RESET 无法正常工作-恩智浦社区 Re: LS1012A Single port pfe setting at LSDK 您使用 PHY DP83867 吗?如果是,请在 Linux 内核配置文件中配置 CONFIG_DP83867_PHY。
在 dts 文件中,请将注册值替换为自定义板上的真实 PHY 地址。
sgmii_phy1: ethernet-phy@2 {
reg =<0x0>;///请使用您自定义的真实 PHY 地址修改 PHY 地址。
ti,rx-internal-delay =<0x7> ;
ti,tx-internal-delay =<0x7> ;
ti,fifo-depth =<0x1> ;
};
查看全文