]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing
authorSebastian Kropatsch <seb-dev@mail.de>
Tue, 23 Jul 2024 21:13:14 +0000 (23:13 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 9 Aug 2024 10:35:22 +0000 (18:35 +0800)
commit0cb1fddb743da8312be469920c17559bd2043f46
tree5dddfc9e38dd57d827b609c09f46859b3c164a4b
parent1c5445f190cabfd0e453f583aca44da10156c0d6
phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing

Fix multiplex configuration for PCIe1L0 and PCIe1L1 in PCIESEL_CON for
RK3588 to correctly select between Combo PHYs and PCIe3 PHY.
Currently, the code incorrectly muxes both ports to Combo PHYs,
interfering with PCIe3 PHY settings.
Introduce PHY identifiers to identify the correct Combo PHY and set
the necessary bits accordingly.

This fix is adapted from the upstream Linux commit by Sebastian Reichel:
d16d4002fea6 ("phy: rockchip: naneng-combphy: Fix mux on rk3588")

Fixes: b37260bca1aa ("phy: rockchip: naneng-combphy: Use signal from comb PHY on RK3588")
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Sebastian Kropatsch <seb-dev@mail.de>
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c