This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DP83848J 上电后,LED_LINK 灯就亮了。而不是等插入网线后,才亮。

Other Parts Discussed in Thread: DP83848J

DP83848J 上电后,LED_LINK 灯就亮了。而不是等插入网线后,才亮。

  • 请问,怎么解决? How to fix it ?
  • LED_LINK 应该是当网线连上之后,才会亮。
    您有做任何配置吗?比如mode1还是mode 2?
  • 这个没有配置,默认的代码。怎么配置mode1 还是 mode2 ?
  • 我这边在 kernel当中配置的 dts如下:

    &gmac_clkin {
    clock-frequency = <50000000>;
    };

    &gmac {
    //pmu_regulator = "act_ldo5";
    //pmu_enable_level = <1>; //1->HIGH, 0->LOW
    //power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
    reset-gpio = <&gpio2 GPIO_D0 GPIO_ACTIVE_HIGH>;
    /* phyirq-gpio = <&gpio0 GPIO_D1 GPIO_ACTIVE_LOW>; */
    phy-mode = "rmii";
    clock_in_out = "output";
    tx_delay = <0x30>;
    rx_delay = <0x10>;
    };
  • 麻烦更新一下状态,谢谢!
  • 配置mode1或者mode 2 可通过寄存器0X19的bit 5 LED_CNFG[0]来配置,当LED_CNFG[0]=1 时为mode 1,为0是为mode 2.
  • rk3128_box:/ # echo 0x19 > /sys/devices/2008c000.eth/stmmac-0:01/phy_reg
    rk3128_box:/ # cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0x8001
    rk3128_box:/ #
    rk3128_box:/ #
    1 > /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue <
    rk3128_box:/ #
    rk3128_box:/ #
    rk3128_box:/ #
    rk3128_box:/ # cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0xffff



    执行命令如下:
    echo 0x19 > /sys/devices/2008c000.eth/stmmac-0:01/phy_reg

    cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0x8001

    echo 0x8011 > /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue

    cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0xffff

    写完就全部变成 0xffff 了?
  • 麻烦更新一下,状态,我们确认完这个问题,赶着发板生产,谢谢!
  • 麻烦,更新一下状态。谢谢
  • 麻烦,更新一下状态。谢谢
  • Hi,麻烦帮忙更新一状态
  • 此问题,已经卡住比较久了。烦请更新一下状态。 2019.05.30 13:49
  • 能否更新一下状态? 2019-05-30 16:20
  • rk3128_box:/ # echo 0x19 > /sys/devices/2008c000.eth/stmmac-0:01/phy_reg
    rk3128_box:/ # cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0x8001
    rk3128_box:/ #
    rk3128_box:/ #
    1 > /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue <
    rk3128_box:/ #
    rk3128_box:/ #
    rk3128_box:/ #
    rk3128_box:/ # cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0xffff



    执行命令如下:
    echo 0x19 > /sys/devices/2008c000.eth/stmmac-0:01/phy_reg

    cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0x8001

    echo 0x8011 > /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue

    cat /sys/devices/2008c000.eth/stmmac-0:01/phy_regValue
    phy reg 0x19 = 0xffff

    写完就全部变成 0xffff 了?
  • 您好,您的问题我已经在e2e上咨询我们美国的资深工程师,您可以在上面直接跟踪,也可以直接反馈到这里来。
    e2e.ti.com/.../806753