Xemacps e000b000.ps7-ethernet:eth0:no PHY Setup
Problem modification Devicetree
Ps.dtsi file
ps7_ethernet_0:ps7-ethernet@e000b000
{
#address-cells = <1>
#size-cells = <0>
clock-names = "Ref_clk", "APER_CLK";
clocks = <&clkc 13>, <&CLKC 30>;
compatible = "xlnx,ps7-ethernet-1.00.a";
interrupt-parent = <&ps7_scugic_0>;
interrupts = <0 4>;
local-mac-address = [0a 35 00 00 00];
phy-mode = "Rgmii-id";
reg = <0xe000b000 0x1000>;
xlnx,ptp-enet-clock = <0x69f6bcb>;
xlnx,enet-reset = "";
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
mdio {
#address-cells = <1>;
# Size-cells = <0>;
};
};
ps7_ethernet_0:ps7-ethernet@e000b000 {
#address-cells = <1>;
#size-cells = <0>;
Clock-names = "Ref_clk", "APER_CLK";
clocks = <&clkc 13>, <&CLKC 30>;
compatible = "xlnx,ps7-ethernet-1.00.a";
Interrupt-parent = <&ps7_scugic_0>;
Interrupts = <0 4>;
local-mac-address = [0a 35 00 00 00];
Phy-mode = "Rgmii-id";
#添加下面的文件句柄
Phy-handle = <&phy0>;
Reg = <0xe000b000 0x1000>;
Xlnx,ptp-enet-clock = <0x69f6bcb>;
Xlnx,enet-reset = "";
Xlnx,eth-mode = <0x1>;
Xlnx,has-mdio = <0x1>;
Mdio {
#address-cells = <1>;
#size-cells = <0>;
#添加具体的设备描述
phy0:phy@0 {
compatible = "marvell,88e1510";
Device_type = "Ethernet-phy";
Reg = <0x0>;
Marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0xa>;
};
} ;
} ;