This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM3356:向 PHY 添加兼容="Ethernet-phy-IEEE802.3-c45"或兼容="Ethernet-phy-IEEE802.3-C22"属性

Guru**** 670100 points
Other Parts Discussed in Thread: AM3356
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1190337/am3356-adding-compatible-ethernet-phy-ieee802-3-c45-or-compatible-ethernet-phy-ieee802-3-c22-property-to-the-phy

器件型号:AM3356

我使用的是 AM3356  CPU 上的最新 TI 版本 Linux 版本5.10.100。

我已将 器件树中的 CPSW 配置为在 DUAL_EMAC 模式下运行、如 software-dl.ti.com/.../CPSW.html 中所述

Mac{(&M)
   pinctrl-names ="default"、"sleep";   
   pinctrl-0 =<&cpsw_default>;
   pinctrl-1 =<&cpsw_sleep>;
  DUAL_EMAC =<1>;
  状态="正常";
};

DaVinci_MDIO{
  pinctrl-names ="default"、"sleep";
  pinctrl-0 =<&Davinc_MDIO_default>;    
  pinctrl-1 =<&Davinc_MDIO_SLEEP>;
  bus_freq =<2500000>;
  状态="正常";

  ethphy0:以太网 phy@0{
   reg =<0>;               /*第一个 PHY 地址为0 */
  };
  ethphy1:以太网 phy@1{
   reg =<1>;               /*第二个 PHY 地址为1 */
  };
};

cpsw_emac0{&cpsw_emac0}
  PHY-Handle =<&ethphy0>;
  PHY-MODE ="RMII";
  DUAL_EMAC_res_vlan =<1>;
};

cpsw_emac1{&cpsw_emac1}
  PHY-Handle =<&ethphy1>;
  PHY-MODE ="RMII";
  DUAL_EMAC_res_vlan =<2>;
};

第一个 eth0端口工作正常。 第二个问题仍然存在、我认为这是与硬件相关的问题。

现在、我想将 兼容="Ethe-phy-IEEE802.3-c45" 或 兼容="Ethe-phy-IEEE802.3-C22" 属性添加到任何 PHY 中。 (一个 PHY 支持 C22、另一个 PHY 同时支持 C22和 C45)

 ethphy1:以太网 phy@1{
   reg =<1>;

    兼容="以太网-phy-IEEE802.3-c45";
  };

或  

ethphy1:以太网 phy@1{
   reg =<1>;

   兼容="Eth以 太网-phy-IEEE802.3-C22";
  };

执行此操作后、第一个从端 eth0端口停止工作。  这是在向2个 PHY 中的任何一个添加任何"compatability ="属性后发生的。

      在器件树中为 DaVinci_MDIO 总线添加 compatible ="Ethe-phy-IEEE802.3-c45"或 compatible ="Ethe-phy-IEEE802.3-c45"属性是否存在问题?

Thx

Martin Roth

Motorola Solutions