]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: mvebu-cp110-utmi: support swapping d+/d- lanes by dts property
authorJosua Mayer <josua@solid-run.com>
Wed, 2 Oct 2024 14:04:40 +0000 (17:04 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Oct 2024 06:30:19 +0000 (12:00 +0530)
commitd6c496f05e98c6d25ac73f23fd0075913620de56
tree49db00d2e2c4404473ad9b86d65b0e98ae6698a3
parent40452520850683f6771094ca218ff206d1fcb022
phy: mvebu-cp110-utmi: support swapping d+/d- lanes by dts property

CP11x UTMI PHY supports swapping D+/D- signals via digital control
register 1.

Add support for the "swap-dx-lanes" device-tree property, which lists
the port-ids that should swap D+ and D-.
The property is evaluated in probe and applied before power-on
during mvebu_cp110_utmi_port_setup.

Signed-off-by: Josua Mayer <josua@solid-run.com>
Link: https://lore.kernel.org/r/20241002-mvebu-utmi-phy-v4-1-83783dc89b9d@solid-run.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/marvell/phy-mvebu-cp110-utmi.c