Other Parts Discussed in Thread: DP83867IR
Tool/software: Linux
Hi,
We have custom board based on Tda2Px Eve board. RGMII1 interface use PHY DP83867IR . The PHY address is correct. I found that the value in CTRL_CORE_PAD_VIN2A_D23 was set to the wrong value.
It can recognize the address but the link is not detected.
This is part of device-tree file:
&cpsw_emac0 {
phy_id = <&davinci_mdio>, <2>;
phy-mode = "rgmii-id";
dual_emac_res_vlan = <1>;
};
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rgmii-id";
dual_emac_res_vlan = <2>;
};
&davinci_mdio {
dp83867_0: ethernet-phy@2 {
reg = <2>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
};
dp83867_1: ethernet-phy@0 {
reg = <0>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_250_PS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
};
};
ethtool eth1 shows:
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: no
dmesg | grep eth :
[ 1.975495] cpsw 48484000.ethernet: Detected MACID = f4:84:4c:10:63:ac
[ 1.982143] cpsw 48484000.ethernet: cpts: overflow check period 800
[ 1.989136] cpsw 48484000.ethernet: cpsw: Detected MACID = f4:84:4c:10:63:ad
[ 12.049585] net eth1: initializing cpsw version 1.15 (0)
[ 12.077369] net eth0: initialized cpsw ale version 1.4
[ 12.099079] net eth0: ALE Table size 1024
[ 12.299595] net eth1: phy found : id is : 0x2000a231
[ 12.353035] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 12.384578] net eth0: initializing cpsw version 1.15 (0)
[ 12.434998] net eth0: phy "48485000.mdio:02" not found on slave 0, err -19
[ 12.469853] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1.953208] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
[ 1.966517] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver TI DP83867
[ 2.228746] davinci-mcasp 48464000.mcasp: DAI is shared
[ 2.234852] davinci-mcasp 48474000.mcasp: DAI is shared
Could you please provide me any reference to solve this issue?
Regards, Nevena
