Skip to content

rockchip: update/add rk3528 devices - #21540

Merged
openwrt-bot merged 5 commits into
openwrt:mainfrom
aiamadeus:rk3528
Jan 19, 2026
Merged

openwrt-bot merged 5 commits into
openwrt:mainfrom
aiamadeus:rk3528

Conversation

@aiamadeus

@aiamadeus aiamadeus commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added kernel pull request/issue with Linux kernel related changes core packages pull request/issue for core (in-tree) packages target/rockchip pull request/issue for rockchip target labels Jan 14, 2026

@dangowrt dangowrt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to cover the alternative name as well, because that's how the product is known at least in EU market. Otherwise good to go.

Comment thread target/linux/rockchip/image/armv8.mk Resolved
@dangowrt

Copy link
Copy Markdown
Member

Testing on that HINLINK H28K shows that the Ethernet PHY is not detected with this series:

[    1.402881] rk_gmac-dwmac ffbe0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    1.431259] rk_gmac-dwmac ffbe0000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19)

With #21479 it worked fine

[    1.495080] rk_gmac-dwmac ffbe0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    1.525237] rk_gmac-dwmac ffbe0000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)

The obvious difference is the PHY reset, and I've tried inverting polarity (active-high instead of active-low) as well as removing it entirely, both didn't do the trick. Don't have much time to debug more, unfortunately.

@aiamadeus

Copy link
Copy Markdown
Contributor Author

Did you upgrade u-boot? (Not Generic RK3528)

U-Boot 2026.01-OpenWrt-r32674+5-16422510b5 (Jan 18 2026 - 09:10:22 +0000)

Model: HINLINK H28K
SoC:   RK3528A

[    0.000000] Machine model: HINLINK H28K
[    2.520231] rk_gmac-dwmac ffbe0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    2.553507] rk_gmac-dwmac ffbe0000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[    2.563985] rk_gmac-dwmac ffbe0000.ethernet eth0: No Safety Features support found
[    2.564658] rk_gmac-dwmac ffbe0000.ethernet eth0: PTP not supported by HW
[    2.565648] rk_gmac-dwmac ffbe0000.ethernet eth0: configuring for phy/rgmii-id link mode

@dangowrt

Copy link
Copy Markdown
Member

Oh, I was using " Generic RK3528" and assumed it wouldn't make a difference once Linux is loaded...

@dangowrt

Copy link
Copy Markdown
Member

As the board comes with an eMMC, it would be nice for sysupgrade to just work without having to replace U-Boot...

@aiamadeus

aiamadeus commented Jan 19, 2026 •

Copy link
Copy Markdown
Contributor Author

As the board comes with an eMMC, it would be nice for sysupgrade to just work without having to replace U-Boot...

"snps,reset-gpio" is deprecated and will not be accepted by upstream.
We can upgrade U-Boot using the sysupgrade or dd command.

This can be achieved by changing the upgrade script or changing the partition size.
The current upgrade script only performs a full upgrade if the partition table changes.

@dangowrt

dangowrt commented Jan 19, 2026 •

Copy link
Copy Markdown
Member

Ok, with the replaced U-Boot also the Ethernet PHY is working now. Just don't understand why the PHY depends on U-Boot to begin with.

@aiamadeus

Copy link
Copy Markdown
Contributor Author

Because U-Boot will assert and deassert first. Kwiboo/linux-rockchip@c338ed2
This situation wouldn't occur if the RST pin had an extended pull-up.

Currently, the LED names generated by the r8169 driver are the
network port names renamed by udev, such as enp1s0. Add a hack
patch to restore the interface name to match OpenWrt.

Signed-off-by: Chukun Pan <[email protected]>
The WAN(eth1) port LED on the Radxa E20C is completely off.
Since the r8169 driver supports configuring LEDs, using it.

Signed-off-by: Chukun Pan <[email protected]>
Use the unique MAC address in EEPROM for eth0.
The MAC address of RTL8111H (eth1) is correct.

Signed-off-by: Chukun Pan <[email protected]>
Add pending uboot support for the HINLINK H28K.

Signed-off-by: Chukun Pan <[email protected]>
Hardware:
- RK3528 SoC
- 1x USB 2.0
- 8/32GB eMMC
- 1/2/4GB LPDDR4
- 1x 1GbE RTL8111H
- 1x 1GbE RTL8211F
- MicroSD card slot

Installation:
  Use dd or balenaEtcher to flash the firmware.

Note:
  The RK3528 SoC does not support MSI-X, so it can't
  adjust the interrupts of r8169 to other CPU cores.

Signed-off-by: Chukun Pan <[email protected]>
@openwrt-bot
openwrt-bot merged commit e8997e7 into openwrt:main Jan 19, 2026
5 checks passed
@aiamadeus
aiamadeus deleted the rk3528 branch January 20, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages kernel pull request/issue with Linux kernel related changes target/rockchip pull request/issue for rockchip target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants