realtek: pcs: allow to configure SerDes polarity
authorJonas Jelonek <[email protected]>
Tue, 28 Oct 2025 22:18:34 +0000 (22:18 +0000)
committerHauke Mehrtens <[email protected]>
Sun, 9 Nov 2025 16:48:10 +0000 (17:48 +0100)
commitb10663c42899a3b7015ad4a0f863767960d7123d
treedff72bf65fe8a73703bad7ae3e5ea112290e827d
parent56e9a73d0b169ed2a7bb48fb5caddb70099d65c9
realtek: pcs: allow to configure SerDes polarity

Allow to configure SerDes polarity in device tree. To achieve this, add
new device tree properties that can be set in the device tree definition
of the SerDes, are read by the PCS driver during probe and are applied
upon SerDes setup.

This may be required for supporting new devices as the SerDes polarity
is usually subject to the vendors board design and defined in the
hardware profile (HWP) in the SDK. Most importantly, it is quite an
important step towards being able to setup everything on our own instead
of relying on the bootloader.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20648
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c