xemacps e000b000.ps7-ethernet: eth0: no PHY setup 解决方法

xemacps e000b000.ps7-ethernet: eth0: no PHY setup

出现问题修改devicetree
ps.dtsi 文件

  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 22 4>;
   local-mac-address = [00 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 22 4>;

   local-mac-address = [00 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>;

    };

   } ;

  } ;

 

 

 

 

 

你可能感兴趣的:(xemacps e000b000.ps7-ethernet: eth0: no PHY setup 解决方法)