1. 检查设备树配置 确认GMAC0节点已启用(status = "okay") 检查时钟配置是否正确,例如: &gmac0 { phy-mode = "rgmii"; clock_in_out = "input"; assigned-clocks = <&cru CLK_GMAC0_TX_SRC>; assigned-clock-parents = <&cru CLK_GMAC0_RGMII_SPEED>; }; 验证PHY相关配置(phy-handle、phy-reset...
rk3568 rockchip 提供的 u-boot,默认的设备树需要读取 单独分区resouce.img镜像中的 设备树文件,也就是 Linux 内核的设备树 dtb 文件,gmac 网络才能正常的 ping 通 PC 主机。 如果使用 u-boot 默认的设备树,虽然可以正常的识别到 gmac 设备,但是无法 ping 通 PC 主机,也就是 u-boot 下网络功能异常。 环境 ...
clock_in_out ="output"; snps,reset-gpio = <&gpio1 RK_PB0GPIO_ACTIVE_LOW>; snps,reset-active-low;/* Reset time is 20ms, 100ms for rtl8211f */snps,reset-delays-us = <020000100000>; assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; assigned-clock-parents = <&c...
tseg1 1..128 tseg2 1..128 sjw 1..128 brp 1..256 brp-inc 2 clock 148500000 num...
&gmac0 { phy-mode = "rgmii";clock_in_out = "output";snps,reset-gpio = <&gpio1 RK_PB0 ...
&gmac1 { /* Use rgmii-rxid mode to disable rx delay inside Soc */ phy-mode = "rgmii-rxid"; clock_in_out = "output"; snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; snps,reset-active-low; /* Reset time is 20ms, 100ms for rtl8211f */ ...
除了24MHz时钟源,还支持25M和100M,仅需要调整assigned-clock-rates = <24000000>数值为所需频率即可。
&gmac0 { phy-mode = "rgmii"; // rgmii或rmii pinctrl-0必须与之相匹配 clock_in_out = "output"; // output 时钟由MAC输入给PHY input与之相反 snps,reset-gpio = <&gpio2 RK_PC5 GPIO_ACTIVE_LOW>;//用于复位PHY的GPIO snps,reset-active-low;//复位PHY的GPIO低电平有效 ...
57 + assigned-clock-rates = <0>, <125000000>; 58 + clock_in_out = "output"; 59 + phy-handle = <&rgmii_phy0>; 60 + phy-mode = "rgmii"; 61 + pinctrl-names = "default"; 62 + pinctrl-0 = <&gmac0_miim 63 + &gmac0_tx_bus2 64 + &gmac0_rx_bus2 65 + &...
[ 0.941091] rk_gmac-dwmac fe2a0000.ethernet: TX delay(0x3c). [ 0.941107] rk_gmac-dwmac fe2a0000.ethernet: RX delay(0x2f). [ 0.941130] rk_gmac-dwmac fe2a0000.ethernet: integrated PHY? (no). [ 0.941220] rk_gmac-dwmac fe2a0000.ethernet: clock input from PHY [ 0.946260] rk_gmac...