From 5e8b9624f1791d193e8d5e007ce4c873454f014a Mon Sep 17 00:00:00 2001 From: Koen Vandeputte Date: Tue, 12 Oct 2021 11:02:30 +0200 Subject: [PATCH] ar71xx: mikrotik: rb91x: fix 10M ethernet link speed Extensive testing on the board showed that ethernet does not work when forced to 10Mbps. Trial-and-error revealed that the correct PLL value should be altered to 0x00001313 (iso 0x00001616) The change is done for this specific board only as I do not have other boards using this specific SoC. The board now works correctly in 1000, 100 and 10 Mode Signed-off-by: Koen Vandeputte --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c index 9620718962..f63ab4362a 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c @@ -318,6 +318,7 @@ static void __init rb711gr100_setup(void) ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0); ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ath79_eth0_data.phy_mask = BIT(0); + ath79_eth0_pll_data.pll_10 = 0x00001313; ath79_eth0_pll_data.pll_1000 = 0x02000000; ath79_register_eth(0); -- 2.30.2