Other Parts Discussed in Thread: DP83869
Tool/software:
Hello
I am trying to use 1G Ethernet by connecting DP83869 with rgmii to am335x.
Opmode is set to 000 and led setting is also set to 000. (Refer to Strap Configuration)
When connecting PC and copper, PC recognizes it as 100M and Linux system does not recognize link.
When I force link-up and 100M speed in Linux system (am335x) kernel, Ping test with PC succeeds, but in other cases it does not succeed. (It also failed when link-up and 1000M were set)
I have some questions.
1. In RGMII mode, shouldn't RX_CLK be 125M? If it is 25M, is RGMII mode not set properly?
Do I need additional settings other than Strap Configuration to output RX_CLK as 125M in RGMII mode?
2. I am using Linux kernel 4.19. Is there a DP83869 driver source that is compatible with it? I searched the Internet for drivers and tried compiling several times, but I got errors in some parts.
It seems that MDIO recognizes phy, but it does not identify it as dp83869. Will this be a problem when using dp83869?
I will leave the device tree and 'ethtool eth0' log together, so please refer to them if necessary.
* Device tree (dts)
&davinci_mdio {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";
reset-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
reset-delay-us = <100>;
dp83869: ethernet-phy@0 {
reg = <0>;
};
ksz9897: ethernet-phy@1 {
reg = <1>;
};
};
&cpsw_emac0 {
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rgmii-txid";
dual_emac_res_vlan = <1>;
#if 0
fixed-link {
speed = <100>;
full-duplex;
};
#endif
};
* ethtool eth0
Settings for eth0:
Supported ports: [ TP AUI BNC MII FIBRE ]
Supported link modes: Not reported
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
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
Best Regards,
Kim.