Subject: Fw: [Bug 212299] New: RK3288-RTL8211E ethernet driver error

From: Stephen Hemminger <[email-masked]>
Date: Tue, 16 Mar 2021 08:46:19 -0700

Begin forwarded message:

Date: Tue, 16 Mar 2021 06:39:54 +0000
From: [email-masked]
To: [email-masked]
Subject: [Bug 212299] New: RK3288-RTL8211E ethernet driver error

https://bugzilla.kernel.org/show_bug.cgi?id=212299

            Bug ID: 212299
           Summary: RK3288-RTL8211E ethernet driver error
           Product: Networking
           Version: 2.5
    Kernel Version: 5.11.6
          Hardware: ARM
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: [email-masked]
          Reporter: [email-masked]
        Regression: No

RK3288 board which has RTL8211E ethernet chip and ACT8846 PMU controller.
The dts file has following info, and it includes rk3288.dtsi
----------------------------------------------------------------------------
&gmac {
        assigned-clocks = <&cru SCLK_MAC>;
        assigned-clock-parents = <&ext_gmac>;
        clock_in_out = "input";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
        phy-supply = <&vcc_lan>;
        phy-mode = "rgmii";
        snps,reset-active-low;
        snps,reset-delays-us = <0 10000 100000>;
        snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
        tx_delay = <0x30>;
        rx_delay = <0x10>;
        status = "okay";
};
----------------------------------------------------------------------------
The ethernet never comes up and giving below error.

root@LXCNAME:~# dmesg | grep eth
[    2.519105] rk_gmac-dwmac ff290000.ethernet: IRQ eth_lpi not found
[    2.526163] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    2.532916] rk_gmac-dwmac ff290000.ethernet: phy regulator is not available
yet, deferred probing
[    2.574228] usbcore: registered new interface driver cdc_ether
[    3.358577] rk_gmac-dwmac ff290000.ethernet: IRQ eth_lpi not found
[    3.358633] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    3.358851] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
[    3.358857] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30).
[    3.358861] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10).
[    3.358868] rk_gmac-dwmac ff290000.ethernet: integrated PHY? (no).
[    3.358895] rk_gmac-dwmac ff290000.ethernet: cannot get clock clk_mac_speed
[    3.358898] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
[    3.363906] rk_gmac-dwmac ff290000.ethernet: init for RGMII
[    3.364096] rk_gmac-dwmac ff290000.ethernet: User ID: 0x10, Synopsys ID:
0x35
[    3.364104] rk_gmac-dwmac ff290000.ethernet:         DWMAC1000
[    3.364107] rk_gmac-dwmac ff290000.ethernet: DMA HW capability register
supported
[    3.364111] rk_gmac-dwmac ff290000.ethernet: RX Checksum Offload Engine
supported
[    3.364114] rk_gmac-dwmac ff290000.ethernet: COE Type 2
[    3.364118] rk_gmac-dwmac ff290000.ethernet: TX Checksum insertion supported
[    3.364121] rk_gmac-dwmac ff290000.ethernet: Wake-Up On Lan supported
[    3.364157] rk_gmac-dwmac ff290000.ethernet: Normal descriptors
[    3.364160] rk_gmac-dwmac ff290000.ethernet: Ring mode enabled
[    3.364164] rk_gmac-dwmac ff290000.ethernet: Enable RX Mitigation via HW
Watchdog Timer
[    8.156632] rk_gmac-dwmac ff290000.ethernet eth0: validation of rgmii with
support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280
failed: -22
[    8.157755] rk_gmac-dwmac ff290000.ethernet eth0: stmmac_open: Cannot attach
to PHY (error: -22)
root@LXCNAME:~# dmesg | grep sdmmac
root@LXCNAME:~# dmesg | grep stmmac
[    3.466622] libphy: stmmac: probed
[    3.490765] mdio_bus stmmac-0:00: attached PHY driver [unbound]
(mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    3.504573] mdio_bus stmmac-0:01: attached PHY driver [unbound]
(mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    3.567118] mdio_bus stmmac-0:02: attached PHY driver [unbound]
(mii_bus:phy_addr=stmmac-0:02, irq=POLL)
[    3.577736] mdio_bus stmmac-0

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.