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.

[参考译文] AM62A3-Q1:连接 Marvell 88E1512 IC

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1388597/am62a3-q1-interfacing-with-marvell-88e1512-ic

器件型号:AM62A3-Q1
主题中讨论的其他器件:AM62A3

工具与软件:

您好、TI:

我们正在尝试 使用 AM62a3配置88E1512。 以下是我的设备树配置:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
&cpsw3g {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_rgmii1_pins_default>;
};
&cpsw_port1 {
status = "okay";
phy-mode = "rgmii";
phy-handle = <&cpsw3g_phy0>;
mac-address = [00 00 00 00 00 00]; // newly added
phys = <&phy_gmii_sel 1>; // newly added
};
&cpsw3g_mdio {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_mdio1_pins_default>;
cpsw3g_phy0: ethernet-phy@0 {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

但无法检测到88e1512、也无法 ping 通。
以下是 dmesg 日志:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
root@am62axx-evm:~# dmesg | grep mdio
[ 0.317374] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 0.318710] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver unknown
[ 11.235574] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Generic PHY] (irq=POLL)
root@am62axx-evm:~# dmesg | grep 88e
root@am62axx-evm:~# dmesg | grep marvell
root@am62axx-evm:~# dmesg | grep 88E
root@am62axx-evm:~# dmesg | grep ETH0
root@am62axx-evm:~# dmesg | grep eth
[ 0.000000] psci: probing for conduit method from DT.
[ 0.178100] optee: probing for conduit method.
[ 0.318786] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
[ 0.319016] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[ 0.319026] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[ 0.319823] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
[ 0.321726] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[ 2.237029] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[ 11.235574] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Generic PHY] (irq=POLL)
[ 11.235627] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
[ 14.626716] udc 31000000.usb: binding gadget driver [g_ether]
[ 14.645279] using random self ethernet address
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

您能 为相同的驱动程序代码和设备树配置提供建议吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Monica、

    首先、我注意到您在器件树文件中使用了&cpsw3g_MDIO 节点中的"DP83867_RGMIIDCTL_2_00_Ns"和"DP83867_PHYCR_FIFO_DEPTH_4_B_NIB"。 请注意、这些示例适用于 TI DP83867 PHY、而您曾指出使用的是 Marvell PHY 88E1512。 应该有对应于 Marvell PHY 的等效器件;但由于该器件不是 TI 器件、因此我们无法就此提供更详细的反馈。

    此外、我从您的引导日志中注意到以下内容、这通常表示您未在内核配置中启用 Marvell PHY 驱动程序、因此内核无法连接到特定的 phy 驱动程序。 请确保您的内核配置包含您计划使用的 PHY 驱动程序。

    [  11.235574] am65-cpsw-nuss 8000000.ethernet eth0:phy [8000f00.mDIO:00]驱动程序[通用 PHY](IRQ=poll)

    您是否还可以在 ping 前后提供"ethtool eth0"和"ethtool -S eth0"的结果。  

    最后、您在使用什么 SDK?

    -道林

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Daolin:
      现在、在内核配置中启用后、我可以检测到 Marvell PHY 驱动程序。 我指 的是以下链接:
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1270408/am623-dss-dpi-display-on-am62x/4811783?tisearch=e2e-sitesearch&keymatch=DPI%252520dts#4811783

    从而可以通过以太网执行 Ping 操作。
    下面是 ethtool 命令的日志:  

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    root@am62axx-evm:/opt/bmit/app# dmesg | grep mdio
    [ 0.318234] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [ 0.319884] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver Marvell 88E1510
    [ 12.152596] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Marvell 88E1510] (irq=POLL)
    root@am62axx-evm:/opt/bmit/app# ethtool eth0
    Settings for eth0:
    Supported ports: [ TP MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Supported pause frame use: Symmetric
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Advertised pause frame use: Symmetric
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Speed: Unknown!
    Duplex: Unknown! (255)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Monica、

    我认为您可能链接了另一个线程、我看到的线程关于显示、而不是以太网

    我看到 ethtool eth0命令的以下输出、这表示在测试的器件 eth0端口与其链接伙伴之间没有连接。 您能描述当前的网络拓扑吗? 即、您连接到 eth0端口了什么?

    检测到链路:否

    -道林

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!
    我们参考以下链接:
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1295099/tda4vm-cpsw0-is-unable-to-ping-to-the-external-network

    我们使用对等连接。 以下是硬件 配置:

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Monica、  

    感谢您共享链路和硬件配置。 由于您使用的是对等连接、您是否使用 Linux 主机 PC 作为链接伙伴? 如果是、您可以选中"ethtool "以查看是否检测到链路?

    您链接的另一个线程中的分辨率似乎在 PHY 上启用了 RX 延迟。 如前所述、您是否已确保将 DP83867的以下属性更改为 Marvell PHY、并检查是否需要为 Marvell PHY 添加 RX 延迟?

    首先、我注意到在您的设备树文件中、您在&cp3g_MDIO 节点中使用了"DP83867_RGMIIDCTL_2_00_NS"和"DP83867_PHYCR_FIFO_DEPTH_4_B_NIB"。 请注意、这些示例适用于 TI DP83867 PHY、而您曾指出使用的是 Marvell PHY 88E1512。 应该有对应于 Marvell PHY 的等效器件;但由于它不是 TI 器件、因此我们无法就此提供更详细的反馈。[/QUOT]

    -道林

x 出现错误。请重试或与管理员联系。