phy: allwinner: phy-sun6i-mipi-dphy: Support D-PHY Rx mode for MIPI CSI-2
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 15 Apr 2022 15:21:32 +0000 (17:21 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 09:10:12 +0000 (14:40 +0530)
commit74d0cd478622c87c1665e19ea9217f298648581d
tree186c69cf72e39a1a2afc75cfa445b608dda215f8
parentc20f80d0b89cf43be964797e6170f085b312ea01
phy: allwinner: phy-sun6i-mipi-dphy: Support D-PHY Rx mode for MIPI CSI-2

The Allwinner A31 D-PHY supports both Rx and Tx modes. While the latter
is already supported and used for MIPI DSI this adds support for the
former, to be used with MIPI CSI-2.

This implementation is inspired by Allwinner's V3s Linux SDK
implementation, which was used as a documentation base.

It uses the direction dt property to distinguish between tx and rx
directions.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://lore.kernel.org/r/20220415152138.635525-3-paul.kocialkowski@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/allwinner/phy-sun6i-mipi-dphy.c