From 34b176b56558b19f5cd81f8c032f981194cd5e86 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 10 May 2025 02:54:09 +0100 Subject: [PATCH] generic: 6.12: mtk_eth_soc: adapt downstream SerDes patch While it will hopefully be replaced soon by an upstream solution for now we keep the downstream SerDes PCS implementation for MT7988A. In order to make it work with upstream mt7988a.dtsi we have to compensate for the changed start address of topmisc which was moved from 0x11d10000 to 0x11d10084 to accomodate a future power domain controller located at 0x11d10000~0x11d10080. Hence we need to change TOP_MISC_NETSYS_PCS_MUX from 0x84 to 0x0, so the Ethernet path/mux selection can work with upstream mt7988a.dtsi. Signed-off-by: Daniel Golle --- ...7-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/generic/pending-6.12/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch b/target/linux/generic/pending-6.12/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch index 52a15a6e09f..b03b72b33d5 100644 --- a/target/linux/generic/pending-6.12/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch +++ b/target/linux/generic/pending-6.12/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch @@ -695,7 +695,7 @@ Signed-off-by: Daniel Golle #define GEPHY_MAC_SEL BIT(1) /* Top misc registers */ -+#define TOP_MISC_NETSYS_PCS_MUX 0x84 ++#define TOP_MISC_NETSYS_PCS_MUX 0x0 +#define NETSYS_PCS_MUX_MASK GENMASK(1, 0) +#define MUX_G2_USXGMII_SEL BIT(1) +#define MUX_HSGMII1_G1_SEL BIT(0)