[PATCH v3 06/17] clk: spacemit: k3: parent eDP/DP pixel clock to the PHY PLL
From: Cody Kang via B4 Relay
Date: Sat Nov 21 2026 - 02:41:12 EST
From: Cody Kang <codykang@xxxxxxx>
The APMU eDP/DP pixel-clock muxes took their second parent from an
input named external_clk, which no binding documents and no device
tree supplies. Their real parents are the DP PHY PLLs, which now
exist as clocks, and the K3 APMU binding lists them as the inputs
edp0_pll_pxclk and edp1_pll_pxclk. Point each mux at its PLL input
and let the pixel clock reach the controller through the clock
framework.
Signed-off-by: Cody Kang <codykang@xxxxxxx>
---
v3:
- commit message: name the binding that documents the two clock inputs
(Jerome Brunet)
v2:
- no change
---
drivers/clk/spacemit/ccu-k3.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/spacemit/ccu-k3.c b/drivers/clk/spacemit/ccu-k3.c
index 39df15c8a3e6d..8782e55926d99 100644
--- a/drivers/clk/spacemit/ccu-k3.c
+++ b/drivers/clk/spacemit/ccu-k3.c
@@ -1038,13 +1038,13 @@ CCU_FACTOR_DEFINE(ufs_refclk, CCU_PARENT_HW(pll1_d64_38p4), 2, 1);
static const struct clk_parent_data edp0_pclk_parents[] = {
CCU_PARENT_HW(lcd_pxclk),
- CCU_PARENT_NAME(external_clk),
+ CCU_PARENT_NAME(edp0_pll_pxclk),
};
CCU_MUX_GATE_DEFINE(edp0_pxclk, edp0_pclk_parents, APMU_LCD_EDP_CTRL, 2, 1, BIT(1), 0);
static const struct clk_parent_data edp1_pclk_parents[] = {
CCU_PARENT_HW(dsi4ln2_lcd_pxclk),
- CCU_PARENT_NAME(external_clk),
+ CCU_PARENT_NAME(edp1_pll_pxclk),
};
CCU_MUX_GATE_DEFINE(edp1_pxclk, edp1_pclk_parents, APMU_LCD_EDP_CTRL, 18, 1, BIT(17), 0);
--
2.43.0