phy: mtk-mipi-csi: add driver for CSI phy
authorPhi-bang Nguyen <pnguyen@baylibre.com>
Thu, 11 Jan 2024 10:17:30 +0000 (11:17 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 7 Feb 2024 14:02:13 +0000 (15:02 +0100)
commit442f34ede7afd23e0fa1d838790f531d5e59d697
treee9a29d26b3cc0aa91bad5ed8f5bd9e301dc7c900
parenta41baa4f0f7d215f4c95a053f593d9b1378963f7
phy: mtk-mipi-csi: add driver for CSI phy

This is a new driver that supports the MIPI CSI CD-PHY version 0.5

The number of PHYs depend on the SoC.
Each PHY can support D-PHY only or CD-PHY configuration.
The driver supports only D-PHY mode, so CD-PHY
compatible PHY are configured in D-PHY mode.

[Julien Stephan: simplify driver model: one instance per phy vs
one instance for all phys]

Signed-off-by: Louis Kuo <louis.kuo@mediatek.com>
Signed-off-by: Phi-bang Nguyen <pnguyen@baylibre.com>
[Julien Stephan: refactor code]
Co-developed-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240111101738.468916-1-jstephan@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
MAINTAINERS
drivers/phy/mediatek/Kconfig
drivers/phy/mediatek/Makefile
drivers/phy/mediatek/phy-mtk-mipi-csi-0-5-rx-reg.h [new file with mode: 0644]
drivers/phy/mediatek/phy-mtk-mipi-csi-0-5.c [new file with mode: 0644]