“线程:AM5708”中讨论的其它部件
您好,
我使用 AM5708和 DP82826E 在定制板上工作。 以太网 PHY 通过 RMII 信号(TxD0,TxD1,TxEN,MDIO,MDC, RxD0,RxD1,RxDV,RxCLK,RxER)。
我正在使用基于内核4.19的处理器 SDK 06_03_00_106。 DP82826E 不可用,因此我创建了一个修补程序 来更新驱动程序(附加到此帖子)。
设备树被设置 为具有以太网 PHY,并在内核引导期间根据以下日志显示正常工作:
root@machine:~# dmesg | grep davinci [ 1.531659] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000 [ 1.539357] davinci_mdio 48485000.mdio: detected phy mask fffffffd [ 1.552000] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver TI DP83826NC
我在启动期间收到警告,因为未定义重置(它未连接到 PHY),不确定它是否相关:
root@machine:~# dmesg | grep mdio [ 1.464289] mdio_bus fixed-0: GPIO lookup for consumer reset [ 1.464298] mdio_bus fixed-0: using lookup tables for GPIO lookup [ 1.464306] mdio_bus fixed-0: No GPIO consumer reset found [ 1.472095] mdio_bus 48485000.mdio: GPIO lookup for consumer reset [ 1.472104] mdio_bus 48485000.mdio: using device tree for GPIO lookup [ 1.472122] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/ethernet@48484000/mdio@48485000[0]' [ 1.472138] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/ethernet@48484000/mdio@48485000[0]'
PHY 被探测:
[ 20.949652] TI DP83826NC 48485000.mdio:01: attached PHY driver [TI DP83826NC] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
但是,无法获得正常工作的以太网连接,看起来链路尚未就绪。
root@machine:~# ip link set dev eth0 down
root@machine:~# ip link set dev eth0 up
[ 516.315388] net eth0: initializing cpsw version 1.15 (0)
[ 516.346137] TI DP83826NC 48485000.mdio:01: attached PHY driver [TI DP83826NC] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
[ 516.364306] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@machine:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq qlen 1000
link/ether 68:47:49:d5:c6:d6 brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
我不排除硬件问题,但已根据 TI 网站上的参考设计对其进行了仔细检查并看起来不错。
我很高兴能得到有关这方面的反馈或任何想法:-)谢谢大家的分享!!
乔尔