Repository navigation
Conversation
|
@jonasjelonek @Djfe @andrewjlamarche @ecsv I would love to have some input here. What should we do about that? |
|
The author/sign-off has the same issue as mentioned in #20337 so you may want to take a look at your git config? |
|
FWIW for those working on this PHY, I found a newer version of the SDK driver in this TP-Link GPL tarball, at I believe that tarball is for this router, which is based on Qualcomm IPQ9574, so it's neither Realtek nor Mediatek. I haven't gone spelunking through other such tarballs. |
nice, i used the one that can be found in dms1250 source and compared to the "core" binary in the stock firmware. it's a 1:1 match tp-link refuses to share the source code for tl-st5008 |
|
mentioning @Ansuel because he is involved with the MTK side of things (for code like pnswap) |
|
I did a lot of work on converting patches to the form used by mtk/qc. i think what actually fixed it is the use of genphy_c45_pma_suspend / genphy_c45_pma_resume the source code linked by @willmo also contains a fix in rtk_phylib_mmd_write, that's used by the functions in these drivers i have to do some more testing |
|
I do wonder if the newer SDK's patches (and/or other updates) will help with devices like W1700K in #17869 though. (Certainly there are a lot of updates to the patches compared to what's currently in |
|
I just noticed that the PR as well as a few of the commits spell it RTK instead of RTL. You might want to correct that during the next rebase :) |
a409254 to
a5e49be
Compare
This reverts commit b77fa45. Signed-off-by: Balázs Triszka <[email protected]>
42378a6 to
d1e248c
Compare
d1e248c to
3485598
Compare
there were a lot of code that's not needed for Linux remove them Signed-off-by: Balázs Triszka <[email protected]>
comes from Archer BE550 source drop Signed-off-by: Balázs Triszka <[email protected]>
same as ddb0cd2 but for RX line Signed-off-by: Balázs Triszka <[email protected]>
these functions are identical as the ones inplemented here therefor dedundant (after rtk_phylib_mmd_write bugfix...) Signed-off-by: Balázs Triszka <[email protected]>
comes from Archer BE550 source drop Signed-off-by: Balázs Triszka <[email protected]>
comes from Archer BE550 source drop Signed-off-by: Balázs Triszka <[email protected]>
prints the actual phy name during config init Signed-off-by: Balázs Triszka <[email protected]>
3485598 to
f7f3b0b
Compare
|
@namidairo @willmo @Djfe @Ansuel this should be ready to merge |
|
apply rtk serdes patches based on device property flag wouldn't build. Needed to revert that one.
|
some rtk devices, like TL-ST5008 doesn't need that patch, infact breaks it Signed-off-by: Balázs Triszka <[email protected]>
f7f3b0b to
75028e5
Compare
woops fixed it. somehow i didn't add the last change of mine |
|
Added the Realtek specific parts of the BE550 GPL to https://github.com/plappermaul/realtek-doc |
| priv->phytype = (phydev->drv->phy_id == REALTEK_PHY_ID_RTL8261N) ? (RTK_PHYLIB_RTL8261N) : (RTK_PHYLIB_RTL8264B); | ||
| if (phydev->drv->phy_id == REALTEK_PHY_ID_RTL8261N) | ||
| { | ||
| data = phy_read_mmd(phydev, 30, 0x103); |
There was a problem hiding this comment.
Ideally we'd make all instances of this MDIO_MMD_VEND1 instead of 30 going forward, and replace similarly for current usages of 6/7/30/31.
There was a problem hiding this comment.
i will send in a pr from this branch: https://github.com/balika011/openwrt_tplink_realtek/tree/rtl8261n_clean
will be fixed there, but that is a bigger change, so i want to send a separate pr for that
FWIW I also found an intermediate version of the RTK driver for RTL8261N et al. (older than from BE550 but newer than in edit: And a somewhat different RTK driver for RTL8226B in the Deco WB7200 tarball at That's probably all the spelunking I can manage for now. Note that I didn't systematically check all TP-Link GPL tarballs but rather tried to check most of the WiFi 7-ish APs that appeared to have Realtek PHYs (or at least not Aquantia PHYs) and preferably with GPL tarballs uploaded in 2024 or 2025. |
|
Thanks for taking care of this. Tested on: TP-Link BE450 (Mediatek MT7988d, RTL8261N, Device Support PR pending #20398) |
can you test this branch please: https://github.com/balika011/openwrt_tplink_realtek/tree/rtl8261n_clean |
|
Thanks for taking care of this. Tested on: TP-Link BE450 (Mediatek MT7988d, RTL8261N, Device Support PR pending #20398)
Sure. A build from that branch doesn't seem to work reliable (in terms of the 8261n) After a reboot the 8216n gets only a 1gbps link (after a huge delay, link partner is 5gbps capable) and no traffic flow. A build from your PR is working fine even after a reboot. Logs:
|
Add support for the `RTL8261N` NBASE-T PHY to the Gemtek W1700K. Depends: openwrt#20392 (rtl8261n: bugfixes and patch updates) Signed-off-by: Kenneth Kasilag <[email protected]>
…emtek W1700K Based on disassembly of the OEM driver, and from logic analyzer measurement, the UXSGMII HSO/HSI lines need to be polarity swapped. Depends: openwrt#20392 (rtl8261n: bugfixes and patch updates) Signed-off-by: Richard Huynh <[email protected]> Signed-off-by: Kenneth Kasilag <[email protected]>
Add support for the `RTL8261N` NBASE-T PHY to the Gemtek W1700K. Depends: openwrt#20392 (rtl8261n: bugfixes and patch updates) Signed-off-by: Kenneth Kasilag <[email protected]>
…emtek W1700K Based on disassembly of the OEM driver, and from logic analyzer measurement, the UXSGMII HSO/HSI lines need to be polarity swapped. Depends: openwrt#20392 (rtl8261n: bugfixes and patch updates) Signed-off-by: Richard Huynh <[email protected]> Signed-off-by: Kenneth Kasilag <[email protected]>
|
Tested this branch to work on Gemtek W1700K. As for Tested-by: Kenneth Kasilag [email protected] |
|
superseded by #20450 |
|
feel free to close this pr since you yourself superseded it :) |
The current driver is buggy, but for some unknown reason still works with MTK devices.
On realtek rtl93xx switches it doesn't work however.
The current workaround is: we turn on the phys from uboot and keep them on.
These changes fixes the issue, we don't need to turn on the phys from uboot anymore.
Note:
There isn't much code here that stops these phys being added to CONFIG_REALTEK_PHY driver,
should we merge them?