diff mbox series

[WIP,6/7] phy: samsung,dp-video-phy: Add exynosautov9 dp phy

Message ID 20241002-auto9-v1-6-c4dc3385f415@samsung.com
State New
Headers show
Series drm/exynos: Add autov9 DPU code | expand

Commit Message

Kwanghoon Son Oct. 2, 2024, 5:33 a.m. UTC
I think this should refactoring to set offset on dt-binding.
In exynosautov9 there are 2 dp phy.

It will better like

dp_0: dp-phy {
    offset = <dp_0_value>;
}

dp_1: dp-phy {
    offset = <dp_1_value>;
}

Signed-off-by: Kwanghoon Son <k.son@samsung.com>
---
 drivers/phy/samsung/phy-exynos-dp-video.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/phy/samsung/phy-exynos-dp-video.c b/drivers/phy/samsung/phy-exynos-dp-video.c
index a636dee07585..0ba929315abd 100644
--- a/drivers/phy/samsung/phy-exynos-dp-video.c
+++ b/drivers/phy/samsung/phy-exynos-dp-video.c
@@ -58,6 +58,10 @@  static const struct exynos_dp_video_phy_drvdata exynos5420_dp_video_phy = {
 	.phy_ctrl_offset	= EXYNOS5420_DPTX_PHY_CONTROL,
 };
 
+static const struct exynos_dp_video_phy_drvdata exynosautov9_dp_video_phy = {
+	.phy_ctrl_offset	= 0x073c,
+};
+
 static const struct of_device_id exynos_dp_video_phy_of_match[] = {
 	{
 		.compatible = "samsung,exynos5250-dp-video-phy",
@@ -65,8 +69,11 @@  static const struct of_device_id exynos_dp_video_phy_of_match[] = {
 	}, {
 		.compatible = "samsung,exynos5420-dp-video-phy",
 		.data = &exynos5420_dp_video_phy,
+	}, {
+		.compatible = "samsung,exynosautov9-dp-video-phy",
+		.data = &exynosautov9_dp_video_phy,
 	},
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos_dp_video_phy_of_match);