66AK2E05XABD25定制板
使用ti-processor-sdk-linux-rt-k2e-evm-05.02.00.10-Linux-x86-Install.bin开发包
已在keystone-k2e-netcp.dtsi配置xgbe接口,配置如下:
xgbe_subsys: subsys@2f00000 {
status = "disabled";
compatible = "syscon";
reg = <0x02f00000 0x100>;
};
status = "disabled";
compatible = "syscon";
reg = <0x02f00000 0x100>;
};
xgbe_pcsr: pcsr@2f00600 {
status = "disabled";
compatible = "syscon";
reg = <0x02f00600 0x100>;
};
status = "disabled";
compatible = "syscon";
reg = <0x02f00600 0x100>;
};
xgbe_serdes: phy@231e000 {
#phy-cells = <0>;
compatible = "ti,keystone-serdes-xgbe";
reg = <0x0231e000 0x2000>;
status = "disabled";
link-rate-kbps = <10312500>;
num-lanes = <2>;
syscon-peripheral = <&xgbe_subsys>;
syscon-link = <&xgbe_pcsr>;
#address-cells = <1>;
#size-cells = <0>;
#phy-cells = <0>;
compatible = "ti,keystone-serdes-xgbe";
reg = <0x0231e000 0x2000>;
status = "disabled";
link-rate-kbps = <10312500>;
num-lanes = <2>;
syscon-peripheral = <&xgbe_subsys>;
syscon-link = <&xgbe_pcsr>;
#address-cells = <1>;
#size-cells = <0>;
xserdes_lane0: lane@0 {
#phy-cells = <0>;
reg = <0>;
status = "ok";
control-rate = <0>;
rx-start = <7 5>;
rx-force = <1 1>;
tx-coeff = <2 0 0 12 4>;
};
xserdes_lane1: lane@1 {
#phy-cells = <0>;
reg = <1>;
status = "ok";
control-rate = <0>;
rx-start = <7 5>;
rx-force = <1 1>;
tx-coeff = <2 0 0 12 4>;
};
};
#phy-cells = <0>;
reg = <0>;
status = "ok";
control-rate = <0>;
rx-start = <7 5>;
rx-force = <1 1>;
tx-coeff = <2 0 0 12 4>;
};
xserdes_lane1: lane@1 {
#phy-cells = <0>;
reg = <1>;
status = "ok";
control-rate = <0>;
rx-start = <7 5>;
rx-force = <1 1>;
tx-coeff = <2 0 0 12 4>;
};
};
netcpx: netcp@2f00000 {
status = "disabled";
compatible = "ti,netcp-1.0";
#address-cells = <1>;
#size-cells = <1>;
ranges;
status = "disabled";
compatible = "ti,netcp-1.0";
#address-cells = <1>;
#size-cells = <1>;
ranges;
clocks = <&clkxge>, <&chipclk12>;
clock-names = "xge_clk", "cpts";
dma-coherent;
clock-names = "xge_clk", "cpts";
dma-coherent;
ti,navigator-dmas = <&dma_xgbe 0>,
<&dma_xgbe 8>,
<&dma_xgbe 0>;
ti,navigator-dma-names = "xnetrx0", "xnetrx1", "xnettx";
<&dma_xgbe 8>,
<&dma_xgbe 0>;
ti,navigator-dma-names = "xnetrx0", "xnetrx1", "xnettx";
netcp-devices {
#address-cells = <1>;
#size-cells = <1>;
ranges;
xgbe@2f00000 {
label = "netcp-xgbe";
compatible = "ti,netcp-xgbe";
syscon-subsys = <&xgbe_subsys>;
syscon-pcsr = <&xgbe_pcsr>;
reg = <0x02f00100 0x200>, <0x02f01000 0xb00>;
tx-queue = <692>;
tx-channel = "xnettx";
#address-cells = <1>;
#size-cells = <1>;
ranges;
xgbe@2f00000 {
label = "netcp-xgbe";
compatible = "ti,netcp-xgbe";
syscon-subsys = <&xgbe_subsys>;
syscon-pcsr = <&xgbe_pcsr>;
reg = <0x02f00100 0x200>, <0x02f01000 0xb00>;
tx-queue = <692>;
tx-channel = "xnettx";
interfaces {
xgbe0: interface-0 {
phys = <&xserdes_lane0>;
slave-port = <0>;
link-interface = <11>;
};
xgbe1: interface-1 {
phys = <&xserdes_lane1>;
slave-port = <1>;
link-interface = <11>;
};
};
};
};
xgbe0: interface-0 {
phys = <&xserdes_lane0>;
slave-port = <0>;
link-interface = <11>;
};
xgbe1: interface-1 {
phys = <&xserdes_lane1>;
slave-port = <1>;
link-interface = <11>;
};
};
};
};
netcp-interfaces {
interface-0 {
rx-channel = "xnetrx0";
rx-pool = <2048 12>;
tx-pool = <1024 12>;
rx-queue-depth = <1024 1024 0 0>;
rx-buffer-size = <1536 4096 0 0>;
rx-queue = <532>;
tx-completion-queue = <534>;
efuse-mac = <0>;
netcp-xgbe = <&xgbe0>;
interface-0 {
rx-channel = "xnetrx0";
rx-pool = <2048 12>;
tx-pool = <1024 12>;
rx-queue-depth = <1024 1024 0 0>;
rx-buffer-size = <1536 4096 0 0>;
rx-queue = <532>;
tx-completion-queue = <534>;
efuse-mac = <0>;
netcp-xgbe = <&xgbe0>;
};
interface-1 {
rx-channel = "xnetrx1";
rx-pool = <2048 12>;
tx-pool = <1024 12>;
rx-queue-depth = <1024 1024 0 0>;
rx-buffer-size = <1536 4096 0 0>;
rx-queue = <533>;
tx-completion-queue = <535>;
efuse-mac = <0>;
netcp-xgbe = <&xgbe1>;
};
};
};
interface-1 {
rx-channel = "xnetrx1";
rx-pool = <2048 12>;
tx-pool = <1024 12>;
rx-queue-depth = <1024 1024 0 0>;
rx-buffer-size = <1536 4096 0 0>;
rx-queue = <533>;
tx-completion-queue = <535>;
efuse-mac = <0>;
netcp-xgbe = <&xgbe1>;
};
};
};
XFITX/XFIRX与SFP+ 1888247-2&2007194-1直连
已将TX_DISABLE拉低使能传输,RATE_SELECT拉高
使用LC-LC多模光纤与INTEL(R) ETH CONVERGED NTWK ADPTR X520-SR2连接
故障现象:
INTEL(R)万兆以太网卡一直重复 连接-断开-连接-断开
请问是对xgbe接口配置有问题还是硬件设计有问题,该如何修改,谢谢
Shine:
把设备树里的xgbe_subsys, xgbe_pcsr, xgbe_serdes, and netcpx 这些节点的status设成ok试试。
user4215508:
回复 Shine:
谢谢,已将设备树里xgbe_subsys, xgbe_pcsr, xgbe_serdes, and netcpx 这些节点的status设成okay,故障一致