zynq-7000 7Z020 双网卡调试
-
网卡芯片
采用两片RTL8201F MII模式
注意:图中R920需要去掉。 -
设备树添加
&gem0 {
compatible = “cdns,zynq-gem”;
status = “okay”;
phy-mode = “mii”;
clock-frequency = <25000000>;
xlnx,ptp-enet-clock = <0x69f6bcb>;
phy-handle = <&phy0>;
local-mac-address = [00 0a 35 11 22 34];
mdio
{
phy0:phy@1{
compatible = “ethernet-phy-id001c.c816”;
device_type =“etherne-phy”;
reg = <0x01>;
};phy1:phy@2{ compatible = "ethernet-phy-id001c.c816"; device_type ="etherne-phy"; reg = <0x02>; };
};
};
&gem1 {
compatible = “cdns,zynq-gem”;
status = “okay”;
phy-mode = “mii”;
xlnx,ptp-enet-clock = <0x69f6bcb>;
phy-handle = <&phy1>;
local-mac-address = [00 0a 35 11 22 35];
};
-
打印结果
-
系统启动后ifconfig -a查看状态