背景
rp-rv1126默认的千兆网络改为百兆网络
修改dts配置
修改rv1126_1109_common.dtsi文件,将phy-mode从rgmii改为rmii,时钟clock由输入改为输出,然后根据产品原理图修改对应的管脚配置,我这里的具体配置修改如下
//1000M
&gmac {
- phy-mode = "rgmii";
- clock_in_out = "input";
+ phy-mode = "rmii";
+ clock_in_out = "output";
- snps,reset-gpio = <&gpio2 RK_PA5 GPIO_ACTIVE_LOW>;
+ snps,reset-gpio = <&gpio2 RK_PC5 GPIO_ACTIVE_LOW>;
snps,reset-active-low;
/* Reset time is 20ms, 100ms for rtl8211f */
- snps,reset-delays-us = <0 20000 100000>;
+ snps,reset-delays-us = <0 50000 100000>;
- assigned-clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>, <&cru CLK_GMAC_ETHERNET_OUT>;
- assigned-clock-parents = <&cru CLK_GMAC_SRC_M0>, <&cru RGMII_MODE_CLK>;
- assigned-clock-rates = <125000000>, <0>, <25000000>;
+ assigned-clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>;
+ assigned-clock-parents = <&cru CLK_GMAC_SRC_M1>, <&cru RMII_MODE_CLK>;
+ assigned-clock-rates = <0>, <50000000>;
pinctrl-names = "default";
- tx_delay = <0x37>;
- rx_delay = <0x2e>;
- pinctrl-0 = <&rgmiim0_pins &clk_out_ethernetm0_pins &gmac_clk_m0_pins>;
+ pinctrl-0 = <&rmiim1_pins &gmac_clk_m1_drv_level0_pins>;
版权属于:咖啡走糖
本文链接:https://www.qwc-lmhhj.cn/archives/203.html
若无注明,本文皆咖啡走糖原创,转载时必须注明出处及本声明!
2 条评论
看的我热血沸腾啊
陈甙场:文章真不错http://wap.jst-gpmx.cn/news/30853.html