将eth1 网口设置成百兆网口, 但更新系统后,仍然显示千兆网口, 未配置成功 gamco 配置: &gmac0 { 233 phy-mode = "rgmii"; 234 clock_in_out = "input"; 235 // clock_in_out = "output"; 236 237 /* snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; */ 238 snps,reset-gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>; 239 snps,reset-active-low; 240 /* Reset time is 20ms, 100ms for rtl8211f */ 241 snps,reset-delays-us = <0 20000 100000>; 242 243 assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; 244 assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&gmac0_clkin>; 248 pinctrl-names = "default"; 249 pinctrl-0 = <&gmac0_miim 250 &gmac0_tx_bus2 251 &gmac0_rx_bus2 252 &gmac0_rgmii_clk 253 &gmac0_rgmii_bus 254 &gmac0_clkinout>; 255 256 tx_delay = <0x3c>; 257 rx_delay = <0x2f>; 258 259 phy-handle = <&rgmii_phy0>; 260 status = "disabled"; 261 }; 时钟配置:: 433 gmac0_clkin: external-gmac0-clock { 434 compatible = "fixed-clock"; 435 clock-frequency = <50000000>; 436 clock-output-names = "gmac0_clkin"; 437 #clock-cells = <0>; 438 }; 439 结果:仍显示千兆网卡 firefly@firefly:~$ dmesg |grep eth1 [ 5.969001] rk_gmac-dwmac fe2a0000.ethernet eth1: No Safety Features support found [ 5.969023] rk_gmac-dwmac fe2a0000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported [ 5.969350] rk_gmac-dwmac fe2a0000.ethernet eth1: registered PTP clock [ 5.971211] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 6.995233] rk_gmac-dwmac fe2a0000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx [ 6.995319] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready |
-
309 Bytes, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1