gen ha Posted May 18 Share Posted May 18 CPU : RK3566 / Mali-G52 GPU RAM : 2GB/4GB LPDDR4 ROM : eMMC 16G/32G/64G Bluetooth : BT 5.0 DC In : DC 5V/2A USB Host : 2 High speed USB 2.0, 1 USB 3.0 Card Reader : TF Card reader Lan : RJ45 Ethernet port 1GiB Wifi : Built-in Wifi, 802.1.1b/g/n/ac ; 2.4G/5G SPDIF : Coaxial(Optical) DTB: rk3566-slzn.dtb 0 Quote Link to comment Share on other sites More sharing options...
gen ha Posted May 18 Author Share Posted May 18 Currently able to start normally: HDMI:✔ USB2.0: ✔(only one) USB3.0:✔ Card Reader:✔ 0 Quote Link to comment Share on other sites More sharing options...
gen ha Posted May 18 Author Share Posted May 18 Can anyone tell me how to repair the Ethernet port? The error log is as follows: [ 26.619270] rk_gmac-dwmac fe010000.ethernet: Failed to reset the dma [ 26.621884] rk_gmac-dwmac fe010000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed [ 26.624545] rk_gmac-dwmac fe010000.ethernet eth0: __stmmac_open: Hw setup failed [ 26.769290] rk_gmac-dwmac fe010000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 26.774068] rk_gmac-dwmac fe010000.ethernet eth0: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL) [ 26.777878] dwmmc_rockchip fe2c0000.dwmmc: No normal pinctrl state [ 26.780446] dwmmc_rockchip fe2c0000.dwmmc: No idle pinctrl state [ 26.784638] dwmmc_rockchip fe2c0000.dwmmc: IDMAC supports 32-bit address mode. [ 26.788899] dwmmc_rockchip fe2c0000.dwmmc: Using internal DMA controller. [ 26.791572] dwmmc_rockchip fe2c0000.dwmmc: Version ID is 270a [ 26.796881] dwmmc_rockchip fe2c0000.dwmmc: DW MMC controller at irq 68,32 bit host data width,256 deep fifo [ 26.880900] platform mtd_vendor_storage: deferred probe pending [ 26.881880] dwmmc_rockchip fe2c0000.dwmmc: No normal pinctrl state [ 26.886026] dwmmc_rockchip fe2c0000.dwmmc: No idle pinctrl state [ 26.888690] dwmmc_rockchip fe2c0000.dwmmc: IDMAC supports 32-bit address mode. [ 26.891380] dwmmc_rockchip fe2c0000.dwmmc: Using internal DMA controller. [ 26.893932] dwmmc_rockchip fe2c0000.dwmmc: Version ID is 270a [ 26.896371] dwmmc_rockchip fe2c0000.dwmmc: DW MMC controller at irq 68,32 bit host data width,256 deep fifo [ 27.776978] rk_gmac-dwmac fe010000.ethernet: Failed to reset the dma [ 27.779377] rk_gmac-dwmac fe010000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed [ 27.781771] rk_gmac-dwmac fe010000.ethernet eth0: __stmmac_open: Hw setup failed 0 Quote Link to comment Share on other sites More sharing options...
maka Posted May 18 Share Posted May 18 You have to change the mdio ethernet phy from 0 to 1 in your DTB. 0 Quote Link to comment Share on other sites More sharing options...
Hqnicolas Posted May 18 Share Posted May 18 (edited) 4 hours ago, gen ha said: USB2.0: ✔(only one) Find the USB port list and change 1 port USB from OTG to HOST &usbdrd_dwc3 { dr_mode = "otg"; extcon = <&usb2phy0>; status = "okay"; }; &usbdrd_dwc3 { dr_mode = "host"; extcon = <&usb2phy0>; status = "okay"; }; Edited May 18 by Hqnicolas 0 Quote Link to comment Share on other sites More sharing options...
Hqnicolas Posted May 18 Share Posted May 18 (edited) 2 hours ago, maka said: You have to change the mdio ethernet phy from 0 to 1 in your DTB. @gen ha it's happnd because you're using a RK3568 DTS to build an RK3566 DTS and it will mess with Mdio this is your solution: &mdio1 { rgmii_phy1: phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x0>; }; }; &gmac1 { phy-mode = "rgmii"; clock_in_out = "input"; snps,reset-gpio = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>; snps,reset-active-low; /* Reset time is 20ms, 100ms for rtl8211f */ snps,reset-delays-us = <0 20000 100000>; assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>; pinctrl-names = "default"; pinctrl-0 = <&gmac1m1_miim &gmac1m1_tx_bus2 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk &gmac1m1_rgmii_bus &gmac1m1_clkinout>; tx_delay = <0x4f>; rx_delay = <0x26>; phy-handle = <&rgmii_phy1>; status = "okay"; }; Edited May 18 by Hqnicolas 0 Quote Link to comment Share on other sites More sharing options...
gen ha Posted May 18 Author Share Posted May 18 (edited) Spoiler Hqnicolas @Hqnicolas HDMI:✔ USB2.0 X 2: ✔ USB3.0:✔ Card Reader:✔ Thanks! Effective, all three USB ports can be used now. Edited May 18 by gen ha 0 Quote Link to comment Share on other sites More sharing options...
Hqnicolas Posted May 18 Share Posted May 18 6 hours ago, Hqnicolas said: it's happnd because you're using a RK3568 DTS to build an RK3566 DTS and it will mess with Mdio to use RK3568 DTS on RK3566 chip you will need to add these lines on the botom of dts &gpu_opp_table { /delete-node/ opp-800000000; }; &dmc_opp_table { opp-324000000 { opp-hz = /bits/ 64 <324000000>; opp-microvolt = <875000>; }; opp-528000000 { opp-hz = /bits/ 64 <528000000>; opp-microvolt = <875000>; }; }; &cpu0_opp_table { /delete-node/ opp-1992000000; opp-216000000 { opp-hz = /bits/ 64 <216000000>; opp-microvolt = <825000 825000 1150000>; clock-latency-ns = <40000>; }; opp-312000000 { opp-hz = /bits/ 64 <312000000>; opp-microvolt = <825000 825000 1150000>; clock-latency-ns = <40000>; }; }; /delete-node/ &combphy0_us; /delete-node/ &gmac0_clkin; /delete-node/ &gmac0_xpcsclk; /delete-node/ &gmac0; /delete-node/ &gmac_uio0; /delete-node/ &pcie30_phy_grf; /delete-node/ &pcie30phy; /delete-node/ &pcie3x1; /delete-node/ &pcie3x2; /delete-node/ &qos_pcie3x1; /delete-node/ &qos_pcie3x2; /delete-node/ &qos_sata0; /delete-node/ &sata0; 0 Quote Link to comment Share on other sites More sharing options...
gen ha Posted May 19 Author Share Posted May 19 @ Hqnicolas The network card is still unable to receive data, and the reason is unclear. In the past, connecting the network port was a simple task, but now it seems very difficult😂 [ 25.313329] rk_gmac-dwmac fe010000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 25.318206] rk_gmac-dwmac fe010000.ethernet eth0: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL) [ 25.321898] dwmac4: Master AXI performs any burst length [ 25.324480] rk_gmac-dwmac fe010000.ethernet eth0: No Safety Features support found [ 25.327033] rk_gmac-dwmac fe010000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported [ 25.329956] rk_gmac-dwmac fe010000.ethernet eth0: registered PTP clock [ 25.333601] rk_gmac-dwmac fe010000.ethernet eth0: configuring for phy/rmii link mode 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.