phy: ti: j721e-wiz: Manage TypeC lane swap if typec-dir-gpios not specified
authorSinthu Raja <sinthu.raja@ti.com>
Fri, 13 Jan 2023 15:06:14 +0000 (20:36 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Jan 2023 17:15:35 +0000 (22:45 +0530)
commit9a8a54b9a95554554de3f8269b34d3b78fa3c9be
tree76cfad5dfe051de6a366d95b8df98f459edf0959
parent2a397a23a565db8db8d30a24b81d349658125c5a
phy: ti: j721e-wiz: Manage TypeC lane swap if typec-dir-gpios not specified

It's possible that the Type-C plug orientation on the DIR line will be
implemented through hardware design. In that situation, there won't be
an external GPIO line available, but the driver still needs to address
this since the DT won't use the typec-dir-gpios property.

Add code to handle LN10 Type-C swap if typec-dir-gpios property is not
specified in DT.

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20230113150615.19375-2-sinthu.raja@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-j721e-wiz.c