Xemacps e000b000.ps7-ethernet:eth0:no PHY Setup Solution

Source: Internet
Author: User

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>;

};

} ;

} ;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.