平台:nvidia orin
内核版本:linux-5.10
Orin 支持10G Tx 网络,所用的PHY芯片为AQR113,硬件在上篇文章已经介绍,本文主要从软件流程介绍:
设备树文件:
/ {
/* MGBE - A */
ethernet@6810000 {
status = "okay";
nvidia,mac-addr-idx = <0>;
nvidia,max-platform-mtu = <16383>;
/* 0=enable, 1=disable */
nvidia,pause_frames = <0>;
phy-handle = <&mgbe0_aqr113c_phy>;
phy-mode = "10gbase-r";
/* 0:XFI 10G, 1:XFI 5G, 2:USXGMII 10G, 3:USXGMII 5G */
nvidia,phy-iface-mode = <0>;
mdio {
compatible = "nvidia,eqos-mdio";
#address-cells = <1>;
#size-cells = <0>;
mgbe0_aqr113c_phy: ethernet_phy@0 {
compatibl