openwrt/target/linux/realtek
Jonas Jelonek 6879c8ea53 realtek: pcs: add XSG write operations
There is some special logic used for certain writes to digital pages for
RTL93xx SerDes, especially when configuring the XSGMII mode. For
RTL930x this applies to SerDes 2 and 3, for RTL93xx to more. In this case,
a dual-read/write to SDS and SDS + 1 is done. While the corresponding
mapping from front to back SDS for RTL931x is currently covered in the
SerDes MDIO driver, it isn't for RTL930x.

To cover these special cases and provide a clear interface on that,
introduce an XSG write SerDes operation. All these dual-read/write cases
can be expressed with such an XSG operation whose internal semantics are
defined for each switchcore family.

This could be done just with plain dual read/write calls however this
isn't a clean approach and may be confusing while comparing our
functionality with the SDK, especially for RTL930x.

In practice, if this isn't handled correctly, only half of the ports of an
XSGMII-connected RTL8218D do work because some required values aren't
applied for the background SerDes 3.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21592
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-01-28 21:10:42 +01:00
..
base-files realtek: rtl930x: Add Hasivo s1100wp-8gt-se (excl. PoE) 2026-01-28 00:43:16 +01:00
dts realtek: rtl930x: Add Hasivo s1100wp-8gt-se (excl. PoE) 2026-01-28 00:43:16 +01:00
files/firmware/rtl838x_phy realtek: phy: drop external RTL8218B firmware blob 2026-01-25 22:16:56 +01:00
files-6.12 realtek: pcs: add XSG write operations 2026-01-28 21:10:42 +01:00
image realtek: rtl930x: Add Hasivo s1100wp-8gt-se (excl. PoE) 2026-01-28 00:43:16 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.66 2026-01-20 01:15:32 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: phy: drop external RTL8218B firmware blob 2026-01-25 22:16:56 +01:00
rtl839x kernel: cleanup CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU 2026-01-11 12:52:54 +01:00
rtl930x kernel: reorder configuration options 2026-01-26 23:57:25 +01:00
rtl930x_nand kernel: reorder configuration options 2026-01-26 23:57:25 +01:00
rtl931x kernel: cleanup CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU 2026-01-11 12:52:54 +01:00
rtl931x_nand kernel: cleanup CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU 2026-01-11 12:52:54 +01:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00