]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: pcs: pcs-mtk-lynxi: deprecate "mediatek,pnswap"
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 19 Jan 2026 09:12:20 +0000 (11:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:46:59 +0000 (19:46 -0800)
commit8871389da15165198c3407584d40e7295bceaca5
treea19b4c3d0b82bc95aab8f48b786ba93c48ecb1b0
parentbde1ae2d52ab3599e1c7ca68a90af8407d20f91d
net: pcs: pcs-mtk-lynxi: deprecate "mediatek,pnswap"

Prefer the new "rx-polarity" and "tx-polarity" properties, which in this
case have the advantage that polarity inversion can be specified per
direction (and per protocol, although this isn't useful here).

We use the vendor specific ones as fallback if the standard description
doesn't exist.

Daniel, referring to the Mediatek SDK, clarifies that the combined
SGMII_PN_SWAP_TX_RX register field should be split like this: bit 0 is
TX and bit 1 is RX:
https://lore.kernel.org/linux-phy/aSW--slbJWpXK0nv@makrotopia.org/

Suggested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20260119091220.1493761-6-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pcs/Kconfig
drivers/net/pcs/pcs-mtk-lynxi.c