]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
generic: 6.12: mtk_eth_soc: adapt downstream SerDes patch
authorDaniel Golle <daniel@makrotopia.org>
Sat, 10 May 2025 01:54:09 +0000 (02:54 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 26 May 2025 15:58:03 +0000 (16:58 +0100)
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 <daniel@makrotopia.org>
target/linux/generic/pending-6.12/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch

index 52a15a6e09f7d6b4d903b763d3bcc19978c0e710..b03b72b33d5058b8664b8f6651d33e7b7db0e233 100644 (file)
@@ -695,7 +695,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  #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)