Jump to content

DEV【 Tanix TX66】 RK3566 4GB/32GB 8K 2.4/5WIFI 1GiB BT USB2/3 SD IR SPDIF


Recommended Posts

s-l1600-2.jpg.e7a03b7363f462f8660a9761808a7179.jpg.de096bc684ca5794fadf435cf63332d3.jpg

 

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

Posted (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 by Hqnicolas
Link to comment
Share on other sites

Posted (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 by Hqnicolas
Link to comment
Share on other sites

Posted (edited)
Spoiler

Hqnicolas

@Hqnicolas

 

HDMI:✔

USB2.0 X 2: ✔

USB3.0:✔

Card Reader:✔

 

Thanks! Effective, all three USB ports can be used now.

Edited by gen ha
Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

@ 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

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines