From 6fb58c1f7a4ad6ce8dfba93ce46978d0c6191692 Mon Sep 17 00:00:00 2001 From: Svyatoslav Ryhel Date: Sun, 23 Feb 2025 11:27:09 +0200 Subject: [PATCH] video: tegra20: dc: get DSI/HDMI clock parent if internal DSI/HDMI is used If device uses native Tegra DSI or HDMI, DC clock MUST use the same parent as DSI/HDMI clock uses. Hence remove need in device tree configuration and satisfy this condition by default. Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index 775043bb1fe..904d0d205f6 100644 --- a/drivers/video/tegra20/tegra-dc.c +++ b/drivers/video/tegra20/tegra-dc.c @@ -524,6 +524,13 @@ exit: return ret; } + priv->clk_parent = devm_clk_get(priv->bridge, "parent"); + if (IS_ERR(priv->clk_parent)) { + log_debug("%s: Could not get DC clock parent from DSI/HDMI: %ld\n", + __func__, PTR_ERR(priv->clk_parent)); + return PTR_ERR(priv->clk_parent); + } + dc_plat = dev_get_plat(priv->bridge); /* Fill the platform data for internal devices */ -- 2.39.5