mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2026-01-08 12:14:47 +00:00
The operating mode of a SerDes must be aligned with the attached PHY or SFP module. That does not only require to change the protocol (e.g. SGMII, 10Gbase-R, ...) but also the speed (e.g. 1.25G). For this the SerDes must be re-initialized properly. - It must be taken into power down - The PLL speed must be set - Maybe the CMU (clock management unit) must be resetted - The new mode must be set - The state machine must be resetted - The power must be reactivated Until now this sequence is bugged. First the driver relies on a clean setup from U-Boot (rtk network on) and second trying to to change mode and PLL speeds does not work at all. And not to forget: Currently two adjacent SerDes cannot drive SGMII/HSGMII at the same time. Fix this by taking care about the right SerDes/PLL/CMU command init order. P.S. This code is inspired by the work of Jan Hofmann, who tried to enable parallel SGMII/HSGMII mode. The only missing bit was a proper CMU reset sequence. Signed-off-by: Jan Hoffmann <jan@3e8.eu> Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/19220 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|---|---|---|
| .. | ||
| base-files | ||
| dts | ||
| files/firmware/rtl838x_phy | ||
| files-6.12 | ||
| image | ||
| patches-6.12 | ||
| profiles | ||
| rtl838x | ||
| rtl839x | ||
| rtl930x | ||
| rtl931x | ||
| Makefile | ||