Skip to content

Conversation

@Icenowy
Copy link

@Icenowy Icenowy commented Jan 30, 2026

Currently the LS7A GMAC device tree node lacks a proper phy-handle property pointing to the PHY node.

In addition, the phy-mode property specifies "rgmii" without any internal delay information, which means the board trace needs to add 2ns delay to the RGMII data lines; but that isn't known to happen on any Loongson board. The ACPI-based initialization codepath, which is used on LoongArch-based 3A5000 + 7A1000 hardwares, specifies "rgmii-id" phy mode, which should be the one we are using.

Add the lacking phy-handle property and set proper phy-mode.

Tested on a LS3A4000_7A1000_NUC_BOARD_V2.1 board with YT8521S PHY.

Reviewed-by: Jiaxun Yang jiaxun.yang@flygoat.com

Currently the LS7A GMAC device tree node lacks a proper phy-handle
property pointing to the PHY node.

In addition, the phy-mode property specifies "rgmii" without any
internal delay information, which means the board trace needs to add 2ns
delay to the RGMII data lines; but that isn't known to happen on any
Loongson board. The ACPI-based initialization codepath, which is used on
LoongArch-based 3A5000 + 7A1000 hardwares, specifies "rgmii-id" phy
mode, which should be the one we are using.

Add the lacking phy-handle property and set proper phy-mode.

Tested on a LS3A4000_7A1000_NUC_BOARD_V2.1 board with YT8521S PHY.

Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
@Icenowy Icenowy force-pushed the aosc-6.18-pick-mips-ls7a-gmac-dt-fix branch from cecfc7e to 5d42bda Compare January 30, 2026 15:21
@Icenowy Icenowy changed the title FROMLIST: MIPS: Loongson64: dts: fix phy-related definition of LS7A GMAC BACKPORT: MIPS: Loongson64: dts: fix phy-related definition of LS7A GMAC Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant