Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Fixed-link Feature

Altera_Forum
Honored Contributor II
871 Views

这种特性主要是为了解决没有使用mdio进行管理的Phy设备。 

 

首先是设备树,内核,以及内核配置三块。 

 

第一: 

设备树: 

有两种写法,据测试现在都是可行的: 

之前是这种写法, 

A 'fixed-link' property in the Ethernet MAC node, with 5 cells, of the form <a b c d e> with the following accepted values: 

- a: emulated PHY ID, choose any but but unique to the all specified fixed-links, from 0 to 31 

- b: duplex configuration: 0 for half duplex, 1 for full duplex 

- c: link speed in Mbits/sec, accepted values are: 10, 100 and 1000 

- d: pause configuration: 0 for no pause, 1 for pause 

- e: asymmetric pause configuration: 0 for no asymmetric pause, 1 for asymmetric pause 

&#29616;&#22312;&#26159;&#25512;&#33616;&#36825;&#31181;&#20889;&#27861;&#65306; 

A 'fixed-link' sub-node of the Ethernet MAC device node, with the followingproperties: 

* 'speed' (integer, mandatory), to indicate the link speed. Accepted values are 10, 100 and 1000 

* 'full-duplex' (boolean, optional), to indicate that full duplex is used. When absent, half duplex is assumed. 

* 'pause' (boolean, optional), to indicate that pause should be enabled. 

* 'asym-pause' (boolean, optional), to indicate that asym_pause should be enabled. 

* 'link-gpios' ('gpio-list', optional), to indicate if a gpio can be read to determine if the link is up. 

 

https://alteraforum.com/forum/attachment.php?attachmentid=14009&stc=1  

&#31532;&#20108;&#26159;&#26242;&#26102;&#19981;&#33021;&#20351;&#29992;ltsi&#29256;&#26412;&#65292;&#24314;&#35758;&#20351;&#29992;master&#29256;&#26412;&#12290; 

 

&#31532;&#19977;&#26159;&#20869;&#26680;&#37197;&#32622;&#35201;&#37197;&#32622;&#25903;&#25345;&#35813;&#29305;&#24615;&#65306;FIXED_PHY&#12290;
0 Kudos
0 Replies
Reply