Hi All,
We have board designed with Cyclone V SOC and EMAC0 is being used for ethernet interface with RGMII-ID interface .Ethernet interface is working fine with Linux kernel 3.10.I have upgraded linux kernel to 4.14 where stmmac device drivers are updated. Here I have problem in the communication. Etherent Phy chip is deteced and link is also up. But when I try to ping there was no communication. Data link led also blinks in the phy chip. Then I probed the emac tx clock which is connected to phy chip. Its always 250MHz irrespective of the link speed. But its suppose to be 125/25/2.5 MHz for 1000/100/10 Mbps respectively.
Where could be the problem, Do i miss any settings. Can anyone help on this issue?
I am using TI DP83867 Phy chip.
Here snap of device tree file
hps_0_gmac0: ethernet@0xff700000 {
compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
reg = <0xff700000 0x00002000>;
interrupt-parent = <&hps_0_arm_gic_0>;
interrupts = <0 115 4>;
interrupt-names = "macirq";
clocks = <&emac0_clk>;
clock-names = "stmmaceth";
rx-fifo-depth = <4096>;
snps,multicast-filter-bins = <256>;
snps,perfect-filter-entries = <128>;
status = "okay";
tx-fifo-depth = <4096>;
address-bits = <48>;
max-frame-size = <1518>;
local-mac-address = [50 41 52 4B 00 03];
phy-mode = "rgmii-id"; /* appended from boardinfo */
snps,phy-addr = <0xffffffff>; /* appended from boardinfo */
phy-addr = <0xffffffff>; /* appended from boardinfo */
txc-skew-ps = <3000>; /* appended from boardinfo */
rxc-skew-ps = <3000>; /* appended from boardinfo */
txen-skew-ps = <0>; /* appended from boardinfo */
rxdv-skew-ps = <0>; /* appended from boardinfo */
rxd0-skew-ps = <0>; /* appended from boardinfo */
rxd1-skew-ps = <0>; /* appended from boardinfo */
rxd2-skew-ps = <0>; /* appended from boardinfo */
rxd3-skew-ps = <0>; /* appended from boardinfo */
txd0-skew-ps = <0>; /* appended from boardinfo */
txd1-skew-ps = <0>; /* appended from boardinfo */
txd2-skew-ps = <0>; /* appended from boardinfo */
txd3-skew-ps = <0>; /* appended from boardinfo */
altr,sysmgr-syscon = <&hps_0_sysmgr 0x00000060 2>; /* appended from boardinfo */
reset-names = "stmmaceth"; /* appended from boardinfo */
resets = <&hps_0_rstmgr 32>; /* appended from boardinfo */
phy-handle = <&phy2>;
hps_0_gmac0_mdio:mdio
{
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy2: ethernet-phy@2 {
reg = <2>;
};
};